|
|
Fun Stuff
|
        Here are some fun things you can add to your webpage. Copy the HTML/script that is below and replace the bold text. NOTE: For all example HTML, you have to be really careful not to delete any of the ' or " or )s. Also, in all the text parts, you can't have stuff like apostrophes, parentheses, or anything that might mess up the code. Enjoy!
Option Buttons with Pop-Ups
Do you like my project?
|
|
|
Basic Javascript
|
        Here are some MORE cool things you can add to your webpage. These codes were made with javascript and some get really long and confusing, so I have put some in text boxes (just scroll over). Remember to not to delete any ' or " or )s!
Entering Pop-Up
Click here to view this pop-up.
<SCRIPT language="JavaScript">alert("TEXT")</SCRIPT>
Leaving Pop-Up
Click here to view this pop-up.
<BODY onUnload="alert('TEXT HERE');">
Put this as an attribute inside the <body> tag.
Entering and Leaving Pop-Up
Click here to view this pop-up.
<BODY onLoad="alert('ENTER TEXT');"onUnload="alert('LEAVING TEXT');">
Put this as an attribute inside the <body> tag.
No Right-Clicking *Only works in some browsers*
Click here to view this pop-up.
<script language="JavaScript">function click() {if (event.button==2) {alert('TEXT HERE')}}document.onmousedown=click</script>
This is especially helpful if you don't want other people to look at and steal your HTML code. Remember to not take away any spaces, parentheses, etc!
|
|
|
|