Quick Notes
Quick Tips For Newbie Webmasters: Vol. #03!
Written By C-Pimp
Open Link in a New Window...
Wanna know how you can make any link on your site open up a new window. Great way to ensure your visitors don't leave your site.
Try not to use this for every link on your site, especially if the person is going to a page on your site...it can be annoying if used to often.
It does come in handy when necessary.
All you need to do is add the TARGET tag in your link code:
<A HREF="http"//www.yahoo.com" TARGET="TOP">Click Here For Yahoo</A>
Display Current Date...
Put the current date on your page for visitors to see, it will update itself everyday. The date will be current as long as the viewer has the proper date on his computer.
Just copy and paste this code:
<script LANGUAGE="JavaScript"><!--
function makeArray() {var args = makeArray.arguments;for (var i = 0; i < args.length; i++) {this[i] = args[i];}
this.length = args.length;}
function fixDate(date) {var base = new Date(0);var skew = base.getTime();if (skew > 0)date.setTime(date.getTime() - skew);}
function getString(date)
{var months = new makeArray("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return months[date.getMonth()] + " " + date.getDate() + ", " + date.getYear();}
var cur = new Date(); fixDate(cur); var str = getString(cur);
document.write(str);
// --></script>
Add Sound To Your Page...
There are two different tags you can use to add sound that will automatically play once a visitor comes to your page. One of the tags works only with Explorer and the other with Netscape.
The tag you can you use with Explorer is <BGSOUND>
Here is how you can use the tag:
<BGSOUND SRC=Your_File.mid LOOP=1>
The tag you can you use with Netscape is <EMBED>
Here is how you can use the tag:
<EMBED SRC=Your_File.mid AUTOSTART=true LOOP=1>
If autostart is true the sound will play automatically, if you put false your visitor will have to click on play to hear it.
You can use the following types of sound files: MIDI, WAV, AU, AIFF
The loop is the number of times you want the sound to play.
[ QUICK NOTES INDEX ]