XPiXiEX
01-21-2007, 07:05 AM
I am trying to make a new website and what I want to do is showcase graphics.
I want to have thumbnail images on the main page...I want those images linked to open full size in a new browser window...so basic html code <a href="link" Target="resource window"><img src="img.gif"> no problem what I am wanting is the new browser window not to be a full sized window but a specified size window which I also know how to do via java script...however I would like for the new browser window to autofit to content...meaning to open at different sizes depending on the size of the image/content etc...
I know by most people this is considered not good web design...but I want to do it anyways...its only my personal site and for the most part those who dont like my web design can not visit my site LOL...but I want to do it just because I dont know how...you know, learn something new LOL.
Anywho, I have searched the web and can not find anything...the only "auto fit to content" stuff I can find is of course for tables withing a page...is this possible? If so can you help me.
---More Info---
I know how to actually get a new browser window to open...what I want is the main page to only show the thumbnail images...then when you click on the thumbnail I want the full sized picture to open in the new browser however I only want that window to be the size of the full sized image...in other words...if the picture is 300x300 I only want the window to be 300x300...but I dont want to have to specify the size in the link to every single picture as they are all different sizes...I want the browser window to be smart enough to know to only open up the size of the picture no matter what size the picure is ie: auto fit to content. Does that make sense?
---More Info---
I found this to try and help explain what I want to do...most of the time when you are specifing a browser window size...you do so by using the following java script....
<html>
<head>
<title>homepage</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval = window.open(URL, 'name', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=250');
eval.moveTo(5,5);
}
// End -->
</script>
</head>
<body>
<a href="javascriptopUp('myportfolio.htm')">My portfolio</a>
</body>
</html>
so in the code above...the part that is in red I want to not have to specify a certain pixel width but rather have some sort of auto fit to content command there...that way you dont get a full browser window just one big enough to view the graphic...without scrolling or alternatly having a lot of wasted space that has no content.
I want to have thumbnail images on the main page...I want those images linked to open full size in a new browser window...so basic html code <a href="link" Target="resource window"><img src="img.gif"> no problem what I am wanting is the new browser window not to be a full sized window but a specified size window which I also know how to do via java script...however I would like for the new browser window to autofit to content...meaning to open at different sizes depending on the size of the image/content etc...
I know by most people this is considered not good web design...but I want to do it anyways...its only my personal site and for the most part those who dont like my web design can not visit my site LOL...but I want to do it just because I dont know how...you know, learn something new LOL.
Anywho, I have searched the web and can not find anything...the only "auto fit to content" stuff I can find is of course for tables withing a page...is this possible? If so can you help me.
---More Info---
I know how to actually get a new browser window to open...what I want is the main page to only show the thumbnail images...then when you click on the thumbnail I want the full sized picture to open in the new browser however I only want that window to be the size of the full sized image...in other words...if the picture is 300x300 I only want the window to be 300x300...but I dont want to have to specify the size in the link to every single picture as they are all different sizes...I want the browser window to be smart enough to know to only open up the size of the picture no matter what size the picure is ie: auto fit to content. Does that make sense?
---More Info---
I found this to try and help explain what I want to do...most of the time when you are specifing a browser window size...you do so by using the following java script....
<html>
<head>
<title>homepage</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval = window.open(URL, 'name', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=250');
eval.moveTo(5,5);
}
// End -->
</script>
</head>
<body>
<a href="javascriptopUp('myportfolio.htm')">My portfolio</a>
</body>
</html>
so in the code above...the part that is in red I want to not have to specify a certain pixel width but rather have some sort of auto fit to content command there...that way you dont get a full browser window just one big enough to view the graphic...without scrolling or alternatly having a lot of wasted space that has no content.