slink11
05-10-2003, 06:54 PM
http://horseland.com/Scripts/VOWNERSD.asp?ID=781064 click here to e-mail me (slinkiesue11@aol.com) On javascript i was wanting to put a thing up so that when someone enters my page it will say bewareand the person will click yes to enter and no to leave immediatly put i don't know where any of the body or head is so i can't put it up someone please aim or e-mail me to help me asap
SSPrincess
05-10-2003, 07:39 PM
The link doesn't work. Here's something I have that should work:
<head><script language="javascript" type="text/javascript">
<!--
/************************************************** **
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
************************************************** **/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=yes,menubar=no,to olbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script></head>
<body>
<a href="http://www.angelfire.com/art2/doodleplex/test2.shtml" onclick="NewWindow(this.href,'Beware','190','190','no','cen ter');return false" onfocus="this.blur()">Enter?</a>
</body>
Don't change anything in here, and it should work. I hope this is what you wanted.
slink11
05-10-2003, 09:48 PM
that didn't work but i was using this but i didn't know where the body is so i can put it there but this is what i saw at lissa's
How do I make JavaScript confirms? A JavaScript confirm is an alert that asks your visitor to decide between 2 choices you offer them.
This confirm warns your visitor to "Enter at your own risk" and if they press cancel, will be taken to another Web site:
<script>
var stay=confirm("Enter at your own risk!! Press "ok" to enter, "cancel" to exit immediately!")
if (!stay)
window.location="http://www.lissaexplains.com"
</script>
but i was suppose to change the url i did but i still didn't know where the body was