help with centering in new page

liunx

Guest
I have created a slide show using frames... when they click on the thumbnail in the top frame - it opens the pic in the bottom frame. How do I get the opened pic in the bottom frame centered on that page?<br />
<br />
Thanks so much!<br />
Shari<!--content-->How do I get the opened pic in the bottom frame centered on that page? <br />
<br />
<body style="text-align:center;"><br />
<p><img></p><br />
</body><!--content-->Where do I put that?? I am doing it in frontpage so it is just opening a new window in that frame. Is there a better way to do this?<!--content-->Originally posted by sharibarnes <br />
Where do I put that?? <br />
<br />
What do you mean whare do i put that.<br />
It's the <body> section of the page you open up.<br />
<br />
You just have to replace the <img> with the one you have already now on each of the pages that open up.<!--content-->There are not seperate pages for each big image that opens up. It is just opening a "new window" each time in that frame with the new image.<!--content-->The link for the images is basically a Right Click/VIEW IMAGE (it opens the image in it's own window).<br />
<br />
If there is a way to control that, I've never seen it (but would love to find out!).<br />
<br />
You (Shari) will probably have to live with the "upper-left-hand-corner" placement (unless someone out their has some news about an alternative), or you can create a page that dynamically displays the image by passing the image name via variables (or URL).<br />
<br />
There's ALWAYS a way, and unless someone out there beats me to the punch tonight, I'll post it for you in the morning (oh wait ... tomorrow is Saturday. So maybe. But let me know if ASP is OK for you. Never mind... I'll post both ways).<br />
<br />
Dinnertime..<br />
T<!--content-->Well...why not put a table in the window the selected pic is to be in...center that table and put the image in it?<br />
<br />
Ummm...I am not too familiar with Frontpage but make sure that your "target" frame or window is set properly.<br />
<br />
<br />
Then again I could be way off too...just a thought. :D<br />
<br />
P.S..Oh and Stefan...please try to be a little more understanding....it may be obvious to you but it may still be a mystery to others...like me :D :D :D :D<!--content-->A little messing around and i came up with this..<br />
<br />
Put this page on your server. I'll call it 'bigimage.html' <br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<html><head><title></title><br />
<script type="text/javascript"><br />
<!--<br />
function getimg() {<br />
url = this.location.toString(); // get the url with the image info. toString() to stringify the url<br />
img = url.replace(/^.+\?(.+)$/,"$1"); // splits out the image using a regular expression<br />
if (img) { document.theimage.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/img;">http://www.webdeveloper.com/forum/archi ... x.php/img;</a><!-- m --> } // if it's there, display it<br />
}<br />
//--><br />
</script><br />
</head><br />
<br />
<body bgcolor="#ffffff" style="text-align:center;" onload="getimg()"><br />
<img name="theimage" src=http://www.webdeveloper.com/forum/archive/index.php/""> <br />
</body><br />
</html><br />
Now, instead of linking to 'path/imagename.jpg'<br />
link to 'bigimage.html?path/imagename.jpg'<br />
Update<br />
Added doctype, javascript/text, and other stuff that should have been there.<br />
One problem: If javascript is disabled, the picture will not display!!<!--content-->Thanks so much for taking the time to help. You're the best!<!--content-->
 
Back
Top