Quick Notes
Quick Tips For Newbie Webmasters: Vol. #02!
Written By C-Pimp
Pop-Up Prompt...
When someone comes to your page they will be asked a question of your choice. If they answer OK, they will be sent to the page of your choice. Just Copy and Paste the code below between your <HEAD> and </HEAD> tags at the top of your HTML document.
<script LANGUAGE="JavaScript">
self.blur();
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
if (confirm("INSERT YOUR TEXT HERE"))
{window.open('http://www.SITE_OF_YOUR_CHOICE.com', 'Vote');}
</script>
Add To Favorite Button...
Just Copy and Paste the code below onto your HTML document to create an "Add To Favorites" button. This will enable your visitors to add your site to their favorites with one click. Please note that it will only work with Internet Explorer.
<script language="JavaScript">
function bookmark(){window.external.AddFavorite('http://www.YOUR_SITE.com','YOUR_TEXT');}
</script>
<form><INPUT TYPE="BUTTON" VALUE="Add This Page To Your Favorites" onClick="bookmark()"></form>
Source Help...
A quick one for all the newbies out there, thought I would pop it in here since we haven't covered it in the HTML Classroom yet!
If you see something on another site that appeals to you and you want to know how they did it, all you have to do is check the HTML source. Simply click on view at the top of your browser and choose Source. This will display the the code the webmaster used to create his site.
There's no harm in barrowing some ideas and using them for your own pages. Just make sure you NEVER copy other people's work!
[ QUICK NOTES INDEX ]