forsakenpurity
03-11-2005, 01:27 AM
I'm extremely new to Javascript and managed to get the coding to do *almost* what I wanted it to do, which is have an image thumbnailed, be able to click on it and have it open as just the image, instead of in a seperate browser window.
What I seem to have gotten wrong is where it's pointing to for the pop-up image. Instead of popping up a larger version of the small image, it's popping up a smaller version of the website itself.
URL: www.enchantedcattery.com
In the head:
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="index/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Popup Window Image Preview</title>
<script language="javascript">
<!-- hide from old browsers
function selectWin(source,h1,w1){
newWin = window.open(source,'','height=' + h1 + ',width=' + w1 + ',top=10,left=0');
}
// stop hiding -->
</script>
In the body:
<p><a href="javascript:selectWin('index.html?image=coopers_small.jpg&height=276&width=500',276,500)"><img
border="0" src="coopers_big.jpg" alt="coopers_small.jpg" " width="100" height="55"></a></p>
If there's something missing that I should be posting along with the question, please let me know. I've never worked within a forum environment before.
Thank you for your time,
-forsaken.
What I seem to have gotten wrong is where it's pointing to for the pop-up image. Instead of popping up a larger version of the small image, it's popping up a smaller version of the website itself.
URL: www.enchantedcattery.com
In the head:
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="index/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Popup Window Image Preview</title>
<script language="javascript">
<!-- hide from old browsers
function selectWin(source,h1,w1){
newWin = window.open(source,'','height=' + h1 + ',width=' + w1 + ',top=10,left=0');
}
// stop hiding -->
</script>
In the body:
<p><a href="javascript:selectWin('index.html?image=coopers_small.jpg&height=276&width=500',276,500)"><img
border="0" src="coopers_big.jpg" alt="coopers_small.jpg" " width="100" height="55"></a></p>
If there's something missing that I should be posting along with the question, please let me know. I've never worked within a forum environment before.
Thank you for your time,
-forsaken.