Results 1 to 7 of 7

Thread: Image Thumbnail Viewer II

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II

    For some reason I just cannot get this to work right. I have never had any problems figuring out how to set up the other scripts but this.......

    I am trying to do the onMouseover with no links and no onClick. I have 4 images that are small and 4 of the same that are larger for the mouseover effect. I labled the small pics. p1.jpg, p2.jpg and so on and the big pics. photo1.jpg, and so on.

    Anyone know what I am doing wrong?

    Thank you

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What isn't it doing that you would like it to?

    PLEASE: Include the URL to your problematic webpage that you want help with.
    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry,

    I just can't get the script to work, because I am not editing the script correctly. http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    I think I am getting mixed up because I am trying to alter the script too much. onMouseover only and no links.

    I am trying to use the script on all the gallery pages of the website www.enchantdesigns.net/customart.html

    The website is going to be switched for a new one as soon as I can finish it.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The link you posted to your page just goes to some odd redirect that says:

    Przykro nam, strona o podanym adresie nie istnieje

    whatever that means (probably 'page not found'), then after a bit loads:

    http://republika.onet.pl/

    I'd really need to see your page or at least your code to tell what the problem is.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The current website is www.enchantdesigns.net it was hosted on, I believe a polish site. I have currently been designing a new website for this person and initiated a new hosting company for them so the new pages I have been working on, it seems may not show up.

    However, I have used many of the DD scripts on my personnal and other websites without any difficulty so I am assuming that I am just not entering the picture and other codes correctly in the script itself.

  6. #6
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The new site is now active where I will be putting the script, if I ever get it working.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, well, it is sort of working. The display area's dimensions need to be a little larger to prevent that jumping around and the path to the initial image is wrong somehow. Yeah, where you have this:
    Code:
    <td width="85%" valign="top" align="left"><p align="left">
         <a href="javascript:warp()"><img src="slide_4" name="targetimage" border=0></a>
    </td>
    It needs to be like this:
    Code:
    <td width="85%" valign="top" align="left"><p align="left">
         <a href="javascript:warp()"><img src="slide_4.jpg" name="targetimage" border=0></a>
    </td>
    Give your table and <td> that display the images a height that is at least as high as the tallest image. That should work in IE but you may need to put a small transparent .gif in there as well (it can be like 1px by 1px) but, tell the browser that it is 1px wide and as tall as the tallest image. That would be (for your original link that is now working):
    Code:
    <td width="85%" height="410" valign="top" align="left"><p align="left"><img src="transparent.gif" width="1" height="400" border="0"><a href="javascript:warp()"><img src="slide_4.jpg" name="targetimage" border=0></a>
    </td>
    This is sometimes required for Mozilla as height on tables is often ignored.

    Now, to use your thumbnails, where you have:
    Code:
     <p><a onMouseover="changeimage(myimages[1],this.href)" href="f15.htm"><light><font
        face="Arial">Portrait</font></light></a></p>
    Make it more like this:
    Code:
     <p><a onMouseover="changeimage(myimages[1],this.href)" href="f15.htm"><img src="thumb1.jpg" border="0"></a></p>
    where thumb1.jpg is the path and name to the thumbnail for myimages[1].

    Added Later:

    P.S. I really like the artwork!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •