Results 1 to 4 of 4

Thread: Help in images mouseover

  1. #1
    Join Date
    Dec 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help in images mouseover

    Hi,
    When u mouseover on any image, at the top-left we can see icons like save this image, print etc... Can we disable that.

    Thanx in advance..

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

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

    This is a very bad idea. Though this is not widely known, it should be. The problem is that it causes a memory leak. After the page is loaded a number of times or after a number of pages that use this strategy are loaded, so much memory is orphaned until the entire session is closed that it can adversely affect cpu performance on the client's machine! There is an alternative method. Simply add galleryimg="no" as an attribute to each image (only images of a certain size would even need it), ex:

    HTML Code:
    <img galleryimg="no" src="some.jpg">
    If you have a ton of images, this script can do that job:

    Code:
    <script type="text/javascript">
    onload=function(){
    var imgs=document.images;
    for (var i_tem = 0; i_tem < imgs.length; i_tem++)
    imgs[i_tem].galleryimg='no'
    }
    </script>
    - John
    ________________________

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

  4. #4
    Join Date
    Dec 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank u very much for ur help

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
  •