Thumbnailing > Full size

admin

Administrator
Staff member
Ok, I have my thumbnails set up, but sometimes when I click it to open it up, it shrinks it down, so I have to do that cursor over image thing for a few seconds, and click the enlarge Icon, is there anyway to make it full size automatically?<!--content-->add this in between your head tags<br />
<br />
<META HTTP-EQUIV="imagetoolbar" CONTENT="no" GALLERYIMG="no"><!--content-->That didn't do it. Imagine this:<br />
<br />
I have a page, portfolio.htm. On that page there are 6 thumbnails, they are linked directly to the GIF, not to a page with the image on it. So when I click them they goto blahblah.gif. Do I need to make a page with the image on it and then add the tag to it, or should the meta tag work on that portfolio page?<!--content-->you need to have it in the page you load the image. this is an IE only thing as mozilla and Ns don't do it.<!--content-->You could make a javascript that looks like this:<br />
<br />
function openWin( picWidth, picHeight, picSrc )<br />
{<br />
winWidth = (picWidth+20);<br />
winHeight = (picHeight+50);<br />
newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=no' );<br />
newWin.document.write("<html>\n<head>\n<title>"+ picSrc +"</title>\n<META HTTP-EQUIV="imagetoolbar"<br />
CONTENT="no" GALLERYIMG="no">\n</head>\n<body>\n");<br />
newWin.document.write("<div style=\"text-align:center; \">\n");<br />
newWin.document.write("<img src=http://www.htmlforums.com/archive/index.php/\"" + picSrc + "\" width=\"" + picWidth + "\" height=\"" + picHeight + "\">\n");<br />
newWin.document.write("</div>\n</body>\n</html>");<br />
}<br />
<br />
Make sure that the newWin commands are each on a line with NO linebreaks. Use it like this:<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"thumbnail.gif" style="cursor:pointer;" onclick="openWin(XXX,YYY,'fullsizepic.gif');"><br />
<br />
Obviously, fill in the XXX and YYY with the fullsizepic.gif width and height. This will create a temporary document that includes the needed META tag.<br />
<br />
Drawbacks:<br />
1. You must imput the size for the image. This can be fixed, but requires getting the image size via php (at least that's how I'd do it). If you really need this, ask in the PHP programming section of the forums.<br />
2. If the image is bigger than the persons screen, the script will open a window that is bigger than the screen. This can be fixed, BUT if you look around the client side scripting section, you will see a thread with what you need.<!--content-->
 
Back
Top