View Full Version : 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..
cr3ative
12-27-2005, 12:14 PM
Yep.
http://www.dynamicdrive.com/dynamicindex9/imagebar.htm
jscheuer1
12-27-2005, 06:28 PM
Yep.
http://www.dynamicdrive.com/dynamicindex9/imagebar.htm
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:
<img galleryimg="no" src="some.jpg">
If you have a ton of images, this script can do that job:
<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>
Thank u very much for ur help
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.