Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Re: displaying a "ticker" within an ASP page


Message #1 by "Nicholas Murray" <murray_nicholas@h...> on Wed, 7 Nov 2001 14:36:19
Well Gavin,



I came across the same problem when I wanted to display links to info 

about the latest press releases on the soon to be launched updated Belfast 

Waterfront hall site @ www.waterfront.co.uk.



I thought I would be able to implement it in dhtml/Javascript with the 

code being generated by asp building it up from enteries in a database.



It worked out far too hard to position on the page this way and there was 

no way I could get it to be cross-browser.



So because I couldn't get the applet I wanted I tried to build a ticker 

myself - but I soon shelved that idea as I got it half done but I ran into 

some problems.



I just kept on searching till I found a suitable java ticker (one that 

could open new windows as well as in the same window, then generated the 

html code that passes the parameters using asp.



Like so.



<table border=1 cellspacing=0 cellpadding=0>

<TR bgColor=#003366><TD height=15><P class=smallsubheading>&nbsp;LATEST 

NEWS</P></TD></TR><tr><td>

<applet code="TextFade.class" width=150 height=60> 

<!--Time each link is displayed--> 

<param name="linkdelay" value="2"> 

<!--higher number means faster fade--> 

<param name="fadespeed" value="20"> 

<!-- colors --> 

<param name="textcolor" value="ffffff"> 

<param name="rollcolor" value="ffcc00"> 

<param name="backcolor" value="336699"> 

<!--Options are: Serif,SansSerif,Dialog,Monospaced--> 

<param name="fontface" value="Dialog"> 

<!--Options are: Plain,Bold,Italic,BoldItalic--> 

<param name="fontstyle" value="Plain,Bold"> 

<!--font size --> 

<param name="fontsize" value="12"> 

<!-- top left start point of the textblock --> 

<param name="xstart" value="4"> 

<param name="ystart" value="20"> 

<!-- width of the textblock --> 

<param name="textblockwidth" value="150"> 

<!-- vertical distance between lines --> 

<param name="leading" value="20"><!--add as many strings and links as you 

like below--> 

<param name="string_1" value="200 extra tickets have been allocated for 

Billy Connelly">

<param name="string_2" value="NTL New Waterfront Hall Sponsors">

<!-- target options are: _self, _parent, _top, _blank, or the name of the 

frame/window you're targeting --> 

<param name="target_1" value="whatson.asp?id=23">

<param name="target_2" value="_blank">

<param name="url_1" value="">

<param name="url_2" value="http://www.ntl.com">

</applet></td></tr></table>



Hope this helps.



Nicholas Murray.






  Return to Index