Notice: Undefined variable: s_offline in /homepages/6/d168803796/htdocs/officetrio.com/o3/o3start.php on line 314
HTML - Tips And Tricks OfficeTrio: The Integrated ECommerce Solution OfficeTrio: The Integrated ECommerce Solution OfficeTrio: Features OfficeTrio: User Manual OfficeTrio: Testimonials OfficeTrio: The Demo is Offline! OfficeTrio: Order O3 Now

HTML - Tips And Tricks

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
}




Tutorials

Contents

Free EBooks
Free Scripts

Introduction
What Can I Do With A Website?
Internet History
Introduction
Preparation
Website Builders

Webmaster's Tools
Tools Intro
HTML Editor
PHP IDEs
Graphics Resources
Telnet and FTP
Miscellaneous Tools

Web Design
Web Design
Domains
Keywords/Description
Logo/Graphics

Creating Web Pages
Setup
HTML
HTML Tips And Tricks
Home Page
Navigation
Other Pages

Webhosting and Unix
Webhosting
Telnet/Unix
More Unix
Website Upload
Analyse And Verify

Programming
Programming 1
Programming 2

PHP
PHP
PHP Scripts
PHP Hit Counter Script
PHP Download Tracking Script
PHP Navigation Script
PHP Affiliates Tracking Script
PHP Users Management
PHP Site Search Script

Perl
Perl
Perl Hit Counter Script
Perl Order Processing Script

Databases
Databases
SQL
Database Setup

ECommerce
ECommerce

Automation
Automating Order Processing
PayPal Automation
Email Automation
Installing Scripts

Security
Basic Security

Affiliates
Affiliates Programs

Managing Your Website
Website Management
Promotion/Advertising
Search Engines
Search Engine Optimisation



Powered By OfficeTrio