PDA

View Full Version : how to add images to the Pausing up-down Scroller



daz-sieminski
05-20-2008, 02:37 PM
Hi can anyone help me out!
I'm using the Pausing up-down Scroller script found on this site! But i would like to add images aswell as text content.
Is this possible? if so what i gota do?

Thanks

Daz

thetestingsite
05-20-2008, 02:45 PM
If this is the script your are talking about: http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

Then you would add the images in the following snippet (add the highlighted parts and edit the parts in red.)



/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='<a href="http://www.javascriptkit.com"><img src="/image1.gif" style="border: 0;"></a><br />Comprehensive JavaScript tutorials and over 400+ free scripts!'
pausecontent[1]='<a href="http://www.codingforums.com"><img src="/image2.gif" style="border: 0;"></a><br />Web coding and development forums.'
pausecontent[2]='<a href="http://www.cssdrive.com" target="_new"><img src="/image3.gif" style="border: 0;"></a><br />Categorized CSS gallery and examples.'


Hope this helps.