ManyCodes.com – codes & scripts Get free programming codes and tutorials!

29Jul/091

How to change status bar when moving mouse on picture on your website

Here is how you can change status bar when moving mouse on picture on your website.

Put the code below within your site's source code. If you dont know how to implement this code into your site, please goto how to implement the code to your website

Code:

<!-- this script is from www.manycodes.com -->
!-- This displays 'Your Message Here' in the status bar when the mouse -->
<!--    pointer is over the 'Put Image Here' image -->

<CENTER>
<A HREF="URL"  onMouseOver="window.status='Your Message Here'; return true"
onMouseOut="window.status=''">
<P><IMG SRC="Put Image Here"></A>
</CENTER>

<!-- This displays 'Your Message Here' in the status bar when the mouse -->
<!--    pointer is over the 'Put Image Here' image -->

<CENTER>
<A HREF="URL"  onMouseOver="window.status='Your Message Here'; return true"
onMouseOut="window.status=''">
<P><IMG SRC="Put Image Here"></A>
</CENTER>
<font face="Tahoma"><a target="_blank" href="http://www.manycodes.com/category/java/javascript-codes/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>
28Jul/090

How to get a moving text status on your website

Here is how you can get a moving text status on your website.

Put the code below within your site's source code. If you dont know how to implement this code into your site, please goto how to implement the code to your website

Code:

<!-- this script is from www.manycodes.com -->
<!--   DESCRIPTION:  This script will make your status message slide into place.  Neat effect.

 INSTRUCTIONS:  Place this script in the BODY tags of
your webpage.  Then place the appropriate message in the var msg value.

 FUNCTIONALITY: Works in both Netscape and IE.



//Modified by CoffeeCup Software
//This code is Copyright (c) 1997 CoffeeCup Software
//all rights reserved. License is granted to a single user to
//reuse this code on a personal or business Web Site.

-->

<BODY onLoad="timerONE=window.setTimeout('slide(120,0)',20);">

<SCRIPT LANGUAGE="JavaScript">

function slide(jumpSpaces,position) {
 var msg = "This JavaScript will slide in your desired message....Cool...isn't it???.......drink more coffee"
 var out = ""
 if (endScroll) {return false}
 for (var i=0; i<position; i++)
 {out += msg.charAt(i)}
 for (i=1;i<jumpSpaces;i++)
 {out += " "}
 out += msg.charAt(position)
 window.status = out
 if (jumpSpaces <= 1) {
 position++
 if (msg.charAt(position) == ' ')
 {position++ }
 jumpSpaces = 100-position
 } else if (jumpSpaces >  3)
 {jumpSpaces *= .75}
 else
 {jumpSpaces--}
 if (position != msg.length) {
 var cmd = "slide(" + jumpSpaces + "," + position + ")";
 scrollID = window.setTimeout(cmd,5);
 } else {
 scrolling = false
 return false
 }
 return true
}
function ccSetup() {
 if (scrolling)
 if (!confirm('Re-initialize slide?'))
 return false
 endScroll = true
 scrolling = true
 var killID = window.setTimeout('endScroll=false',6)
 scrollID = window.setTimeout('slide(100,0)',10)
 return true
}
var scrollID = Object
var scrolling = false
var endScroll = false
</SCRIPT>
<font face="Tahoma"><a target="_blank" href="http://www.manycodes.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>