View Full Version : picture pop up


babygurl_holla1
06-24-2005, 11:56 PM
i what the picutuer to pop up in like a pop up . here the code
<html>
<head>
<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg","popup","width=500,height=500,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif","popup","width=500,height=500,location=0,menubar=0,resizabl e=0,scrollbars=yes,status=0,titlebar=1,toolbar=0") }
-->

</script>
</head>

<body>

<a href="javascript:popup()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg" border=0 width="40" height="40" alt="your image description here"></a>
<a href="javascript:popup()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif" border=0 width="40" height="40" alt="your image description here"></a>
</body>
</html>


BUT when i go to the web site here http://www.freewebs.com/ugotmeb5/test.html one pops up with uout u clicking anything and when u click one of them its the wrong pic so can anyone see what im doing wrong?

lefty
06-25-2005, 12:49 AM
You need two different functions with different names... otherwise both links will open the same image (as you've seen). Try something like this (I altered the stuff in bold)

head:

<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg","popup","width=500,height=500,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0 ,titlebar=1,toolbar=0") }
fuction popup2()
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif","popup","width=500,height=500,loca tion=0,menubar=0,resizabl e=0,scrollbars=yes,status =0,titlebar=1,toolbar=0") }
-->
</script>

body:

<a href="javascript:popup()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg" border=0 width="40" height="40" alt="your image description here"></a>
<a href="javascript:popup2()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif" border=0 width="40" height="40" alt="your image description here"></a>

babygurl_holla1
07-07-2005, 06:39 PM
ok sorry it to replay but something was wrong with my internet for like 2 weeks.

i did what see said but now it well not pop up when i click the picture.

http://www.freewebs.com/ugotmeb5/test.html

kittycat
07-08-2005, 04:01 AM
Try removing the spaces in the line, the ones in the words location, resizeable, and after status=0

babygurl_holla1
07-08-2005, 03:33 PM
Try removing the spaces in the line, the ones in the words location, resizeable, and after status=0


ok i did it.still does not work. heres the code



<html>
<head>

<script language="javascript" type="text/javascript">
//<!--
function popup()
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg","popup","width=500,height=500,location=0,menubar=0,resizabl e=0,scrollbars=0,staus=0 ,titlebar=1,toolbar=0") }
fuction popup2()
{ window.open ("http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif","popup","width=500,height=500,loca tion=0,menubar=0,resizable=0,scrollbars=yes,status =0,titlebar=1,toolbar=0") }
-->
</script>
</head>
<body>


<a href="javascript:popup()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beekool.jpg" border=0 width="40" height="40" alt="your image description here"></a>
<a href="javascript:popup2()"><img src="http://i2.photobucket.com/albums/y4/only-be-me/beesig0kj.gif" border=0 width="40" height="40" alt="your image description here"></a>
</body>
</html>



is there something wrong with it