Daily web design tips

Friday, January 27, 2006

Control your visitors browser

Web pages were designed to be controlled by the user, for example allowing them to change font size and browser [Define] size, which is a strange concept to grasp when you first start designing web site, especially if you come from a print design background, where you dictate exactly what the page will look like.

However there are aspects you can control of their browser, one of the best examples is the status bar that is located in the bottom left of the browser. Move your mouse over a link and the status bar will show the web address of where the link goes. Some times you will want to show a message like “Free widgets buyers guide” rather then the web address. To change the status bar display you need to add some simple code to your website called JavaScript [Define]. This is a very easy thing to-do and will make a link as well.

Copy the below code into your web page where you want the link to appear.

<a url='http://www.yourwebsite.com/pagename.htm' onmouseover='window.status='Place any text you like here';return true' onmouseout='window.status='';return true'>Click here</a>

Simple changes to the code

You need to change the web address www.yourwebsite.com/pagename.htm to the page you are linking to, and replace “Place any text you like here” with the message you want display in the status bar, like “Free widgets buyers guide”.

0 Comments:

Post a Comment

<< Home