These can be incorporated into your own webpages later on and are listed here for reference.
How To Automatically Redirect Browsers:
Problem: You own the following domains: YourDomain.com, .net, .org and .co.nz
You want browsers to go automatically to the .com domain... so you put the following meta tag into the index.html pages for all the other domains:
<meta http-equiv="refresh" content="5; URL=www.yourdomain.com">
Means...........^Redirect... in...^5 seconds to ^ this URL.
|
How To Add Your Icon To The Favourites Menu:
You've seen it many times, you add a site as a favourite - and it adds a new icon to the favourites menu in your browser. (Note, this only works with Internet Explorer and V5 has a bug, causing the icon to sometimes disappear.) If you'd like your website's icon to be added to the browser's favourites, add the following tag into the HEAD section of your home page:
<LINK REL="SHORTCUT ICON" href="Full/Path/To/Your/Icon.ico">
More info is available on Favicons at favicon.com or favicon.de.
|
How To Change The Text in The Status Bar:
When the mouse is held over a link, the status bar usually shows the URL of the link. If you want it to say something different, there are two parameters to the link tag you can use, 'onMouseOver' and 'onMouseOut'.
onMouseOver changes the text in the status bar when the mouse hovers over the link.
onMouseOut changes the text in the status bar when the mouse moves away from the link.
Just add the following text to your link tags:
onMouseOver="status='Your Text Here';return true"
onMouseOut="self.status='Your Text Here';return true"
For example, hover the mouse over this link:
<a href="html.php#ti" title="Tips 'n Tricks" onMouseOver="status='MouseOver!';return true" onMouseOut="self.status='MouseOut!';return true">
|
How To Provide An 'Add To Favourites' Link:
This isn't actually HTML, but JavaScript. Most browsers will support Javascript. Just modify and add this link to your web page:
<a href="javascript:window.external.AddFavorite('http://YourURL',%20'YourWebsiteDescription)">Add To Favourites</a>
Your page could also just say 'Press Ctrl-D To Bookmark this Page'.
|
How To Change The Scrollbar's Appearance:
This is easy - you just set the values you want for your scrollbar (it's an attribute of the body element) in your stylesheet:
<style>
<!--
body{
scrollbar-face-color:#0000CC;
scrollbar-arrow-color:red;
scrollbar-track-color:#999999;
scrollbar-shadow-color:#222222;
scrollbar-highlight-color:#AAAAAA;
scrollbar-3dlight-color:#BBBBBB;
scrollbar-darkshadow-color:#444444;
}
-->
</style>
|
How To Change The Window Size:
This will set the size of the browser window to the size you specify (e.g. 640x480) when the page is loaded or refreshed.
<script language="JavaScript">
<!--
window.resizeTo(640,480)
-->
</script>
Note, window.resizeTo() sets the outer dimensions - ie. the window including the frame...
To set the window to the desired inner dimensions, use:
function SetInner(width,height) {
window.innerWidth = width
window.innerHeight = height
}
|