Dark-Raven
asked on
please help me with: I want to make an webside and if you
before you enter the side i want to make an warning
something like this
Welcome
Please tell me what
you think of my Website
E-mail me at
vegito_saiyan@email.com
please help
it's with javascript but please tell me exactly it
wellllll.......... thanks
something like this
Welcome
Please tell me what
you think of my Website
E-mail me at
vegito_saiyan@email.com
please help
it's with javascript but please tell me exactly it
wellllll.......... thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
A normal warning pop up in javascript is made like this:
in your <head>:
<script language="javascript">
function myPopup(){
alert("Welcome! \n\n Please tell me what \n you think of my Website. \n E-mail me at \n vegito_saiyan@email.com")
}
</script>
the \t equals a tab, if you need to use that
the \n equals a linebreak
and in the boyd tag:
<body onload="myPopup()">
in your <head>:
<script language="javascript">
function myPopup(){
alert("Welcome! \n\n Please tell me what \n you think of my Website. \n E-mail me at \n vegito_saiyan@email.com")
}
</script>
the \t equals a tab, if you need to use that
the \n equals a linebreak
and in the boyd tag:
<body onload="myPopup()">
<!--
This will only work in IE but it is worth looking at because it
is a fun effect
-->
<!-- frameset will use frame in welcome_first.htm and welcome_second.htm -->
<HTML>
<HEAD>
<TITLE> frameset def </TITLE>
</HEAD>
<FRAMESET FRAMEBORDER=0 FRAMEWIDTH=0 BORDER=0 ROWS="100%,0">
<FRAME SRC="welcome_first.htm" SCROLLING="no" NAME="first">
<FRAME SRC="welcome_second.htm" SCROLLING="no" NAME="second">
</FRAMESET>
</HTML>
<!-- welcome_first.htm this contains the welcoming message -->
<HTML>
<HEAD>
<title> welcome page </title>
<SCRIPT language="JavaScript">
<!--
var curdnval=100;
function dochg()
{
curdnval --;
curdnval --;
parent.document.body.rows= curdnval + "%,*";
if (curdnval>0)
{
setTimeout('dochg()',50);
}
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="silver">
<DIV ALIGN="center">
<BR><BR><BR><BR><BR>
<table width=200 border=0>
<tr>
<td bgcolor="lightyellow" align="center">
<h1> WELCOME </H1>
Please tell me what<BR>
you think of my Website <br><br>
</td>
</tr>
</table>
<a href="mailto:saiyan@email. com?subjec t=comments ">
EMAIL ME vegito_saiyan@email.com</a >
<BR><BR>
<input type="button" value="Enter Site"
onClick="dochg()">
</div>
</BODY>
</HTML>
<!-- welcome_second.htm this will contain the home page -->
<HTML>
<HEAD>
<title> welcome page </title>
</HEAD>
<BODY BGCOLOR="Aqua">
<DIV ALIGN="center">
<BR><BR><BR>
<h1> This is the </h1>
<BR>
<h1><font color="blue"> HOME PAGE </font></h1>
<BR><BR>
with whatever<BR>
additional <BR>
content and<BR>
links <BR>
that are <BR>
required <BR>
for the<BR>
site<BR>
</div>
</BODY>
</HTML>
Like I said IE only but it is fun to play with this kind of stuff and
it doesn't use much script
Cd&
This will only work in IE but it is worth looking at because it
is a fun effect
-->
<!-- frameset will use frame in welcome_first.htm and welcome_second.htm -->
<HTML>
<HEAD>
<TITLE> frameset def </TITLE>
</HEAD>
<FRAMESET FRAMEBORDER=0 FRAMEWIDTH=0 BORDER=0 ROWS="100%,0">
<FRAME SRC="welcome_first.htm" SCROLLING="no" NAME="first">
<FRAME SRC="welcome_second.htm" SCROLLING="no" NAME="second">
</FRAMESET>
</HTML>
<!-- welcome_first.htm this contains the welcoming message -->
<HTML>
<HEAD>
<title> welcome page </title>
<SCRIPT language="JavaScript">
<!--
var curdnval=100;
function dochg()
{
curdnval --;
curdnval --;
parent.document.body.rows=
if (curdnval>0)
{
setTimeout('dochg()',50);
}
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="silver">
<DIV ALIGN="center">
<BR><BR><BR><BR><BR>
<table width=200 border=0>
<tr>
<td bgcolor="lightyellow" align="center">
<h1> WELCOME </H1>
Please tell me what<BR>
you think of my Website <br><br>
</td>
</tr>
</table>
<a href="mailto:saiyan@email.
EMAIL ME vegito_saiyan@email.com</a
<BR><BR>
<input type="button" value="Enter Site"
onClick="dochg()">
</div>
</BODY>
</HTML>
<!-- welcome_second.htm this will contain the home page -->
<HTML>
<HEAD>
<title> welcome page </title>
</HEAD>
<BODY BGCOLOR="Aqua">
<DIV ALIGN="center">
<BR><BR><BR>
<h1> This is the </h1>
<BR>
<h1><font color="blue"> HOME PAGE </font></h1>
<BR><BR>
with whatever<BR>
additional <BR>
content and<BR>
links <BR>
that are <BR>
required <BR>
for the<BR>
site<BR>
</div>
</BODY>
</HTML>
Like I said IE only but it is fun to play with this kind of stuff and
it doesn't use much script
Cd&
Slight mistake in my code!
Change:
//-->
</head>
to
//-->
</script>
</head>
Ant
Change:
//-->
</head>
to
//-->
</script>
</head>
Ant
BTW,
Congrats in order for Ant reaching Sage level. Only one more tshirt now. :^)
Cd&
Congrats in order for Ant reaching Sage level. Only one more tshirt now. :^)
Cd&
Thank you Cd&. :o)
It's taking me 5 months to get this far, so another 5 and I might just hit that "Genius" mark!!
Ant
It's taking me 5 months to get this far, so another 5 and I might just hit that "Genius" mark!!
Ant
Dark-Raven,
It's about time to close this out. Please selct the comment that was most helpful and grade it so we can move the Q to the PAQ database.
Cd&
It's about time to close this out. Please selct the comment that was most helpful and grade it so we can move the Q to the PAQ database.
Cd&
Dark-Raven,
By not responding you are going to convince the experts, that it is a waste of time to try and help you. Leaving questions open like this will make it more difficult for you to get help in the future.
Cd&
By not responding you are going to convince the experts, that it is a waste of time to try and help you. Leaving questions open like this will make it more difficult for you to get help in the future.
Cd&
<NOTE>
Dark-Raven added to list of those who do not deserve help
</NOTE>
Cd&
Dark-Raven added to list of those who do not deserve help
</NOTE>
Cd&
This question has been abandoned. Would the experts please indicate how
this should be closed out. Is there a comment which should be accepted?
Should the points be split? Should it be reduced to zero points and PAQed?
should it be deleted?
TIA for helping to clean up the old questions.
teacher_mod
Community Support Moderator
Experts-Exchange
teacher_mod@experts-exchan ge.com
this should be closed out. Is there a comment which should be accepted?
Should the points be split? Should it be reduced to zero points and PAQed?
should it be deleted?
TIA for helping to clean up the old questions.
teacher_mod
Community Support Moderator
Experts-Exchange
teacher_mod@experts-exchan
Split points? 0 PAQ?
I don't mind
Ant
I don't mind
Ant
Split...
Cd&
Cd&
Points for a.marsh https://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20155809
Points for klykken https://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20155810
Points for COBOLdinosaur https://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20155811
Respective Experts, please comment in the Q to complete this point split transaction.
Thanks,
Moondancer
Community Support Moderator @ Experts Exchange
Points for klykken https://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20155810
Points for COBOLdinosaur https://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20155811
Respective Experts, please comment in the Q to complete this point split transaction.
Thanks,
Moondancer
Community Support Moderator @ Experts Exchange
Simply change your <body> so that it includes this onLoad event:
<body onLoad="alert('Welcome!\n\
or if you perhaps change the way you want to ask the question you could use this:
<html>
<head>
<script language="Jjavascript">
<!--
function doStartMsg(){
if(confirm('Welcome!\n\nI would love to know what you think of my web site. To send me an email to tell me, please click OK.')){
window.location.href = "mailto:vegito_saiyan@emai
}
}
//-->
</head>
<body onLoad="doStartMsg();">
You web page here.
</body>
</html>
Ant