View Full Version : ANYONE HELP ON THIS CODING?
Lozzoling
01-04-2005, 11:33 AM
i want a code that:
when you click an image a pop-up window comes up with 200x200
AND
i want the linked image NOT to have that annyoing blue/purple square around it.
lozzo2
splintercell!
01-04-2005, 11:38 AM
Try this :)
Insert this inbetween the <head> tags.
<HEAD>
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=200,left = 300,top = 200');");
}
// End -->
</script>
</head>
and then for your link use:
<A HREF="javascript:popUp('<!--PageURL-->')"><img src="IMG URL" border="0"></A>
NOTE: Where the :p is use : p without space :)
Homosexual
01-04-2005, 11:43 AM
Its this:
<HEAD>
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=200,left = 300,top = 200');");
}
// End -->
</script>
</head>
Link:
<A HREF="javascript:PopUp('<!--PageURL-->')"><img src="IMG URL" border="0"></A>
:Blob
01-04-2005, 11:46 AM
Yep, both of them are RIGHT~
splintercell!
01-04-2005, 11:48 AM
only difference is hers had a Popup and mine was popup :P
Lozzoling
01-04-2005, 01:43 PM
there not working
lozzo2
splintercell!
01-04-2005, 01:45 PM
whats your sites URL?
Lozzoling
01-04-2005, 02:34 PM
don't bother i deleted the code
Eric30
01-04-2005, 02:55 PM
Its this:
<HEAD>
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=200,left = 300,top = 200');");
}
// End -->
</script>
</head>
Link:
<A HREF="javascript:PopUp('<!--PageURL-->')"><img src="IMG URL" border="0"></A>
<script type="text/javascript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=200,left = 300,top = 200');");
}
// End -->
</script>
You forgot the <script type="text/javascript">
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.