PDA

View Full Version : » Need 2 Codes



JK
25-03-2007, 11:16 AM
i need 2 codes to help with my new site.

» A Code that turns a page into a popup

» A code so when you go on the homepage the popup comes up.

+Rep if you can help

F32
25-03-2007, 11:19 AM
<a href="link.html" target="_blank></a>

Ryan.
25-03-2007, 11:37 AM
<a href="link.html" target="_blank></a>
Is for when you click a link it opens in new page.. Case you didn't know :p.

Invent
25-03-2007, 01:26 PM
By link:


<html>
<head>
<script language="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=width,height=height');");
}
// End -->
</script>
</head>
<body>
<A HREF="javascript:popUp('file.php')">Open the Popup Window</A>
</body>
</html>


Automatically:


<html>
<head>
<script language="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=width,height=height');");
}
// End -->
</script>
</head>
<body onLoad="javascript:popUp('file.php')">
</body>
</html>

JK
25-03-2007, 01:28 PM
Fanx for help invent

Jordy
25-03-2007, 01:29 PM
or if your lazy, you could use:
http://javascript.internet.com/generators/popup-window.html

It's not bad ;)

Want to hide these adverts? Register an account for free!