Results 1 to 2 of 2

Thread: how to add images to the Pausing up-down Scroller

  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to add images to the Pausing up-down Scroller

    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

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.)

    Code:
    /*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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •