Results 1 to 2 of 2

Thread: Problem resizing image

  1. #1
    Join Date
    Jun 2004

    Problem resizing image


    I found a good script on the internet on how to resize images.

    The problem I have however is I am trying to get it to work accross different images in the same file.

    I have attached a txt file with sample code in now when you click on small it has the information for the first. This works without a problem.

    When I click on medium and want to do it with different variables it is not working.

    This is only a small part of my script and I am using php to dictact the variables and it is all working nicely apart from I dont know the javascript to make it work.

    Is there a simple way to lock the preview function down to specifed what div to use based on display properties?

    Any help would be brilliant.

    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2003
    Reference correctly:
        <div id="resizemenu">            
          <a href="#" onclick="document.getElementById('sml').style.display='block';document.getElementById('med').style.display='none';">Small</a>
          <a href="#" onclick="document.getElementById('sml').style.display='none';document.getElementById('med').style.display='block';">Medium</a>
    Add a DTD
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles