473,651 Members | 3,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stock Ticker

2 New Member
At work we have a couple flat screens that display news and current stock info. About a week ago it stopped displaying the marquee for the stock info.

Curious if anyone had any suggestions on what might of changed.
Perhaps something changed at yahoo,,,,

Stock symbol changed to protect my identity :)

Thanks
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <META HTTP-EQUIV=Refresh CONTENT="60; URL=bottom.asp"> 
  4. <script> 
  5. function getQuote()
  6. {
  7.   var Symbols="FO"
  8.  
  9.   var x = new ActiveXObject("MSXML2.XMLHTTP");
  10.   arSymbols=Symbols.split(" ");
  11.   var theQuotes="";
  12.   x.Open("GET","http://finance.yahoo.com/d/quotes.csv?s=" + Symbols+"&f=sl1d1t1c1ohgv&e=.txt", false);
  13.   x.Send();
  14.   theQuotes=x.ResponseText;
  15.     theQuotes= theQuotes.replace(/"/g,""); // remove double quotes
  16.  
  17.  
  18.   var arQuoteLines=theQuotes.split("\n")
  19.   var finalString="";
  20.   var arTempLine=null; 
  21.  
  22.  
  23.   var tmpString="";
  24.   for(var i=0;i<arQuoteLines.length-1;i++)
  25.   {
  26.     arTempLine=arQuoteLines[i].split(",");
  27.     tmpString+='My stock $' + arTempLine[2];
  28.   }
  29.  
  30.   showQuotes.innerHTML=tmpString ;
  31. }
  32.  
  33. </script>
  34. <title>None</title>
  35. <style>
  36. <%
  37. response.write "table{font-family: verdana, arial, sans-serif; font-size:22pt; color:'#ffffff'; background-color:'#000000'}"
  38. response.write "input{font-family: verdana, arial, sans-serif; font-size:24pt; color:'#ffffff'; background-color:'#000000'}"
  39.  
  40. response.write "</style>"
  41. response.write "</head>"
  42. response.write "<body onload='getQuote();'>"
  43.  
  44. response.write "<table  width='100%' height='100%'border=0><tr>" 
  45. Response.Write "<tr class=Color1>"
  46.  
  47. Response.Write "<td align=left width='1%'>"
  48. Response.Write "</td>"
  49. Response.Write "<td align=left width='55%'>"
  50. Response.Write "<b>"
  51. response.write FormatDateTime(Date, 1) & "   " & left(Time, len(time) -6) & right(time, 2)
  52. Response.Write "</b>"
  53.  
  54. Response.Write "</td>"
  55.  
  56. Response.Write "<td align=right width='43%'>"
  57. Response.Write "<marquee id=showQuotes></marquee>"
  58.  
  59. Response.Write "</td>"
  60.  
  61. response.write "</tr>"
  62. response.write "</table>"
  63. %>
  64. </body></html>
  65.  
Sep 13 '07 #1
2 2551
melvin74
2 New Member
Nevermind i got it. Looks like yahoo changed the order of the information and where it was coming from.

Worked with download.financ e etc.
Sep 13 '07 #2
NikolaiM
1 New Member
There are companies who specialize in providing financial content for websites. For example, AlphaTrade E-Trax. Stock market information for websites may have real time streaming stock quotes, market news, company news and events. As an option they provide stock charts, currency converter, option chains, etc.
Aug 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1157
by: Bill | last post by:
Anyone know of an ASP application that will provide me with stock data for a specific ticker symbol? Of course, a free app would be nice, but I'd consider something I have to pay for. I'd prefer something that is not an installed component (not a DLL or COM). Thanks!
4
6056
by: dthelwal | last post by:
I'm looking for an applet or script to feed from an RSS page (perhaps RSS 0.91) and turn its <title> and <link> entries (perhaps using <description> as well) into a scrolling news ticker where the ticker will pause when you move your mouse over a news item and clicking on that item would jump to the hyperlink in the RSS page. There are a lot of simpler tickers out there and some even take basic XML format pages as their content source...
3
6673
by: Dan | last post by:
Hi Does anyone know of a good Javascript typewriter ticker that allows you to insert HTML into the ticker. I have found lots but when HTML is inserted, the ticker pauses at the point it reaches the HTML as well as applying the formatting. I need one whose character timer ignores characters in tags. I need to apply font color and weight styling to different words. Please see www.launchpr.co.uk for how the ticker currently looks in
2
3714
by: rohan ranade | last post by:
Hi. I want to create a ticker similare to the one shown on CNBC. Can someone tell me a flicker free way to do it?
1
2101
by: David | last post by:
Hi, I have the following asp in my page, but I keep getting the following error Microsoft VBScript runtime error '800a0009' Subscript out of range: 'ticker' Please can you help me ?. Here is the page code I have so far: ---------------------------------
2
2082
by: Phillip Vong | last post by:
I'm new at this. Anybody know where I can find out how to pull stock quotes from the Nasdaq site into my ASP site? I want my users to enter a ticker in one Textbox1 ex. MSFT and another Textbox2 will grab the current price and drop it in there. I found something in C+, but I know nothing about C+ and not much on VB. I'm just trying to learn.
7
3018
by: Donlingerfelt | last post by:
I would like to download stock quotes from the web, store them, do calculations and sort the results. However I am fairly new and don't have a clue how to parse the results of a web page download. I can get to the site, but do not know how to request the certain data need. Does anyone know how to do this? I would really appreciate it. Thanks.
2
2590
by: Rathorevivek | last post by:
Hi All, I am working on a financial website. I have to use real time stock quotes ticker(in Marquee format) for that.The stock exchange for which i want to extract the stock details is NSE(India) and the url for the same is http://www.nse-india.com I searched internet thoroughly but could not meet any code of my requirement. I am using ASP.Net 1.1 with C#. Please help me with your precious suggestions and guidelines. Thanks and...
13
4939
by: RommelTJ | last post by:
Hi, My website (http://www.justiceinmexico.org/indextest.php) looks good in Firefox, but horrible in IE, and I think it's because of an error in the javascript of a free web ticker I got off the internet. When I run Firebug on it, it says: document.getElementById("TICKER") has no properties TICKER_CONTENT = document.getElementById("TICKER").innerHTML; Here is the complete script:
0
8367
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8589
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.