-
August 30th, 2004, 10:54 PM
#1
Senior Member
Open a custom webpage!!
Hi there ppL!
Here is my question:
- I whanted to make a page open like a popup, but from the start, ex, i make page in Dreamweaver, then save it to a folder has test.htm for ex, and then, when i opened it she would oppen has i whant, like without scroll bars, navegation bar, at a x resolution etc.. like this one:
http://www.assassinscm.com/html/index.html
click on the logon button and a custumized page oppens, i whant that but from the start, when you first click on the page.
Can anyone help me out with a javascript or were can i find one?
Thanx alot!
-
August 30th, 2004, 11:09 PM
#2
Oh I know what you want. I have done this before, and you can make your page pop up via a JavaScript link. To impliment this, paste the following code in between the head tags of your site:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- 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,menubar=0,resizable=0,width=100,height=100,left = 350,top = 250');");
}
// End -->
</script>
Or have it link from an external .js script.
Then in the <body> tag insert
Code:
<BODY onLoad="javascript:popUp('filename')">
This code courtesy of Google. http://javascript.internet.com/gener...up-window.html
Please be aware this may not work with browsers that have pop up blockers. Hope this helps, if it does not, please PM me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|