68 users online (0 members and 68 guests)  


  Results 1 to 5 of 5

Related

  1. Swap Image then Open Lightbox    Forum: Javascript Forum
    Replies: 0
  2. Image swap and Lightbox    Forum: Javascript Forum
    Replies: 1
  3. image swap    Forum: CSS Forum
    Replies: 1
  4. How do I swap an image for BOTH an image and a sound?    Forum: Website Scripts Forum
    Replies: 1
  1. #1
    msandersen's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Location
    So. Oregon, USA
    Posts
    6

    image swap with links???

    http://www.geocities.com/kythca/gallery.html
    Okay, i know how to do this with ImageReady, but that would create a very image heavy page which would take way long to load.

    Is there a way to do this kind of thing with java script or dhtml??? And to make the image that's swapped (thumnail) be linkable to open up the full-sized image in a new window.

    I have found a few scripts online (at dynamicdrive) to do this (not including the linking of the image) but none of them want to work for me, i keep getting error messages and asked if want to debugg.

    Can anyone help me here??? Any advice would be much appriciated!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    Our best bet is to get the examples you already have from dynamicdrive working.

    How about posting the code that errors so we can see whats up?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    msandersen's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Location
    So. Oregon, USA
    Posts
    6

    Okay... how bout this...

    If i do this:
    Code:
    <tr> 
          <td width=200 bgcolor="#FFFFFF"><a href="angel1.jpg" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('wing_thumb','','images/thumbnails/angel1.jpg',1)">Melancholy Angel</a><br>
            <a href="angel2.jpg" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('wing_thumb','','images/thumbnails/angel2.jpg',1)">Angel Amanda</a><br>
            <a href="angel3.jpg" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('wing_thumb','','images/thumbnails/angelfaery.jpg',1)">Angel Attempt (3)</a><br>
          </td>
          <td width=200 bgcolor="#000000"> 
            <div align="center"><img src="images/thumbnails/thumbnail.jpg" width="150" height="150" name="wing_thumb"></div>
          </td>
        </tr>
    But make the image swap happen onClick rather than MouseOver, is there a way to make each image that is swapped in on click a link (to open the pages by clicking the image rather than the description link)???
    Last edited by msandersen; 12-09-2003 at 03:44 AM.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi,

    your code does not include the MM_image functions, could you include all the code or a link?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    msandersen's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Location
    So. Oregon, USA
    Posts
    6
    Quote Originally Posted by QuietDean
    your code does not include the MM_image functions, could you include all the code or a link?

    I'm not sure what MM_image functions are... I just copied this from my source code for the page i'm working on... I moslty used dreamweaver to do this page. And i don't really write script as much as edit it when i need to (and i have to mess around a bit before making it work).

    I guess i haven't assigned any functions to the images (still not sure what those are, sorry)... I haven't attempted to link them yet, i wasn't sure if it's possible, and i haven't seen any obvious way to do it, so i haven't tried.

    This is all the codei have.. I don't have any java script in the head (other than to preload the images) sorry.



Tags for this Thread