Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Image Thumbnail Viewer

  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer

    1) Script Title: Image Thumbnail Viewer

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/thumbnail.htm

    3) Describe problem: It says I have to download thumbnailviewer.css and thumbnailviewer.js. They immediately download to Dreamweaver. Where in my page do I put them? i.e. <Body> section or <head>?

    Thanks, Mike.

  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

    The files are external files. The call to the script (.js file) and the link to the stylesheet (.css file) go in the head of the page as stated on the demo page for this script:

    Step 1: Add the following to the <head> section of your page:

    Code:
    <link rel="stylesheet" href="thumbnailviewer.css" type="text/css" />
    
    <script src="thumbnailviewer.js" type="text/javascript">
    
    /***********************************************
    * Image Thumbnail Viewer Script- © Dynamic Drive (www.dynamicdrive.com)
    * This notice must stay intact for legal use.
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    </script>
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Done it!! Thanks a lot!!
    Mike.

  4. #4
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just one more thing, how do I get the 'loading.gif' to work. When I download it, I just get the animation moving in a new window. Where do I go from there?
    Thanks.

  5. #5
    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

    I don't know what you mean by 'the animation' or by 'download'. Did you right click on the loading.gif text and chose 'save as' or 'save target as' and save it to the same directory that your page is in?
    - John
    ________________________

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

  6. #6
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No, I just double clicked on the 'loading.gif' link. What I have done now is as you said, chosen 'save target as', and it now works great!
    Also, my thumbnails have blue border round them, is it possible to either change the colour, or remove them altogether? You can see them here:
    http://www.maximumrnb.com/test3.htm

    Thanks again.
    Mike.

  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

    Code:
    <img src="http://www.maximumrnb.com/Jimi201.jpg" style="border:none;width: 168px; height: 238px" />
    or:

    Code:
    <img src="http://www.maximumrnb.com/Jimi201.jpg" style="border:1px solid red;width: 168px; height: 238px" />
    Or whatever you like.
    - John
    ________________________

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

  8. #8
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John.....is it possible to use 'mouseover' in this script?
    Mike.

  9. #9
    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

    You could try:

    Code:
    <a href="http://www.maximumrnb.com/Jimi01.jpg"" rel="thumbnail" onmouseover="this.onclick();">
    If that doesn't work, the solution would probably be a bit complex but, doable.
    - John
    ________________________

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

  10. #10
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again!! It worked a treat!! Thank you very much for your superfast replies. You do a great job!!
    Regards, Mike.

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
  •