WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Make a link show a diffrent URL than is set in the HREF tag.
Categories : Java Script, HTML
Boaz Yahav
Date : Jul 05th 2003
Grade : 3 of 5 (graded 5 times)
Viewed : 5820
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

Sometimes we need to have a link go to http://www.mydomain.com but we want to show http://www.my-
other-domain.com in the status line when someone moves the mouse over the link.

Here is how you do it :

<HTML>
<HEAD>
<SCRIPT>
<!--
function Min(str){
    window.status=str;
    return true;
}
function Mout(){
    window.status='';
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<A HREF="http://www.weberdev.com" onMouseOver="return Min('go to www.php.co.il')" onMouseOut="Mout
()" TARGET="_BLANK">Click Here</A>
</BODY>
</HTML>



Check if Javascript is Enabled or Disabled - Works in all Browsers
Categories : Java Script, HTML, Web Browsers
Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Javascript Background Scroller
Categories : Java Script, CSS, HTML
Clock at Status Bar
Categories : Java Script, HTML, Date Time
Prevent Right Mouse steal your graphics
Categories : HTML, Java Script, Security
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
Bookmarklets are simple tools that extend the surf and search capabilities of Netscape and Explorer web browsers.
Categories : Java Script, HTML, General
complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
Javascript Color Picker
Categories : Java Script, Colors, HTML
Unobtrusive javascript for maintaining scrollable layer state
Categories : DHTML, Java Script, HTML
Cool tool tip
Categories : Java Script, HTML, Web Design
Java Script Based Navigation
Categories : HTML, Java Script, Navigation
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
Higly Customizable Javascript Calendar Script
Categories : Java Script, Calendar, Date Time, HTML, CSS
Mordern Peroidic Table - Science
Categories : Java Script, HTML, Charts and Graphs
 matthew waygood wrote : 990
There is no need to have 2 functions to do the same task, just supply an empty parameter for unsetting it.

e.g.

&lt;HTML&gt; 
&lt;HEAD&gt; 
&lt;SCRIPT&gt; 
&lt;!-- 
function Message(str){ 
    window.status=str; 
    return true; 

//--&gt; 
&lt;/SCRIPT&gt; 
&lt;/HEAD&gt; 
&lt;BODY&gt; 
&lt;A HREF="http://www.weberdev.com" onMouseOver="return Message(`go to www.php.co.il`)" onMouseOut="Message 
(``)" TARGET="_BLANK"&gt;Click Here&lt;/A&gt; 
&lt;/BODY&gt; 
&lt;/HTML&gt; 
 
 matthew waygood wrote :991
Alternatively to be a little more robust you could save the existing status message and return it back again when you are through.

var keep;
window.status="this is a test";

function Min(str){ 
    keep=window.status;
    window.status=str; 
    return true; 

function Mout(){ 
    window.status=keep; 
    return true;