Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    [COLOR=rgb(0, 0, 0)][COLOR=rgb(0, 0, 0)]Hey there, after some guidance on Javascript image scroll...[/COLOR][/COLOR]

    [COLOR=rgb(0, 0, 0)][COLOR=rgb(0, 0, 0)]Any help on this would be greatly appreciated![/COLOR][/COLOR]
    [COLOR=rgb(0, 0, 0)][COLOR=rgb(0, 0, 0)]
    [/COLOR]
    [/COLOR]

    [COLOR=rgb(0, 0, 0)]I'm using a Javascript to scroll images on the homepage of a site i'm working on...[/COLOR]

    [COLOR=rgb(0, 0, 0)]what I ineed to do it have each image as a h ref linking to a page within the site.[/COLOR]
    [COLOR=rgb(0, 0, 0)]
    [/COLOR]

    [COLOR=rgb(0, 0, 0)]If i try to assign this in the .js file it effects the scroll function.[/COLOR]
    [COLOR=rgb(0, 0, 0)]
    [/COLOR]

    [COLOR=rgb(0, 0, 0)]Does anyone know a way around this?[/COLOR]
    [COLOR=rgb(0, 0, 0)]
    [/COLOR]

    [COLOR=rgb(0, 0, 0)]below is my javascript.... if anyone has any advise on what to do they'd be really helping me out...[/COLOR]
    [COLOR=rgb(0, 0, 0)]
    [/COLOR]

    [COLOR=rgb(0, 0, 0)]var imgs = new Array(); var imgcnt = 0; var thisimg = 0;[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/tiarasindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/braceletsindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/earringsindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/necklaceindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/vintageindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/shoesindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/accessoriesindex.gif';[/COLOR]
    [COLOR=rgb(0, 0, 0)]imgs[imgcnt++] = 'images/bridesmaidindex.gif';[/COLOR]

    [COLOR=rgb(0, 0, 0)]function nextImg() {[/COLOR]
    [COLOR=rgb(0, 0, 0)]if (document.images) {[/COLOR]
    [COLOR=rgb(0, 0, 0)]thisimg++;[/COLOR]
    [COLOR=rgb(0, 0, 0)]if (thisimg >= imgcnt) thisimg = 0;[/COLOR]
    [COLOR=rgb(0, 0, 0)]document.rollimg.src = imgs[thisimg];[/COLOR]
    [COLOR=rgb(0, 0, 0)]}[/COLOR]
    [COLOR=rgb(0, 0, 0)]}[/COLOR]
    [COLOR=rgb(0, 0, 0)]function prevImg() {[/COLOR]
    [COLOR=rgb(0, 0, 0)]if (document.images) {[/COLOR]
    [COLOR=rgb(0, 0, 0)]thisimg--;[/COLOR]
    [COLOR=rgb(0, 0, 0)]if (thisimg < 0) thisimg = imgcnt-1;[/COLOR]
    [COLOR=rgb(0, 0, 0)]document.rollimg.src = imgs[thisimg];[/COLOR]
    [COLOR=rgb(0, 0, 0)]}[/COLOR]
    [COLOR=rgb(0, 0, 0)]}[/COLOR]
    [COLOR=rgb(0, 0, 0)][COLOR=rgb(0, 0, 0)] [COLOR=rgb(0, 0, 0)][/COLOR] [/COLOR][/COLOR]

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:10 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com