GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   What is wrong with this code? Popup a New Window! (https://gfy.com/showthread.php?t=68369)

Darren 07-18-2002 07:52 AM

What is wrong with this code? Popup a New Window!
 
Code for opening a new window when a picture is clicked.

This in head

<script LANGUAGE="javascript">
<!--
function win(url){
p = window.open(url,"Pop","width=330,height=280,scroll bars=no,location=no,resizable=no,status=no,menubar =no,toolbar=yes,valign=center,align=center")
p.focus()
}
//-->
</script>

& this is how i link to the new popup window

Javascript:win('thevids\alana\popup.html');

The popup comes up but says server not found even though the location is correct. Im using Internet explorer and fromtpage to test this.

DjSap 07-18-2002 07:55 AM

just guessing but try / instead of \

jimmyf 07-18-2002 07:57 AM

Quote:

Originally posted by DjSap
just guessing but try / instead of \
This is correct.

Darren 07-18-2002 08:06 AM

why would it be like that?

still doesnt work that way either?

flashfreak 07-18-2002 08:10 AM

cause that's the way you adress directories in unix.

jimmyf 07-18-2002 08:12 AM

Quote:

Originally posted by Darren
why would it be like that?

still doesnt work that way either?

Because that's just the way it is. Maybe if you posted the whole thing someone could help you. Code.

-----------------------------
And if you really want to know....why would it be like that? You will have to ask Al Gore... After all he invented the Internet.
-----------------------------

grumpy 07-18-2002 09:23 AM

put the complete url in there like
Javascript:win("http://domain/thevids/alana/popup.html");
and use the slash the right way and " instead of '


All times are GMT -7. The time now is 08:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123