koli yume
(?)Community Member
- Posted: Sun, 10 Sep 2006 22:28:47 +0000
Please do not take credit for my guide...if you want create your own and use your OWN style and not mine, so don't copy my guide. evil
Lets get started!
How to do alerts?!
Alerts are little messages that pop up when your page is loaded.
It goes in the body section of your html code.
This makes a message pop up when loading a site. It will say "hello world" but you can change what is says in the parenthesies. Make sure that you use single quotes around it or it won't work.
This does the opposite of onLoad, and once you leave the site the message will pop up, "bye now." You can change what is says here also.
If you want to add more than one message do this:
This allows more than one message, but it can get messy, so be carefull. You can do the same format with the onUnload.
Lets get started!
How to do alerts?!
Alerts are little messages that pop up when your page is loaded.
It goes in the body section of your html code.
Quote:
<BODY onLoad="alert('hello world!')">
This makes a message pop up when loading a site. It will say "hello world" but you can change what is says in the parenthesies. Make sure that you use single quotes around it or it won't work.
Quote:
<BODY onUnload="alert('bye now!')">
This does the opposite of onLoad, and once you leave the site the message will pop up, "bye now." You can change what is says here also.
If you want to add more than one message do this:
Quote:
<BODY onLoad="alert('Hello There!'); alert('Howdy!')">
This allows more than one message, but it can get messy, so be carefull. You can do the same format with the onUnload.