Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-07-2004, 09:27 AM   PM User | #1
Tamiya
New to the CF scene

 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Tamiya is an unknown quantity at this point
Mouse Over Effect And Status Bar

I would like some help. I've already added a msg to my homepage. So whenever someone go to the page, the status bar on IE will display my msg. However, I would like to cancel out or hide the URL the status bar indicates whenever a mouse is drag over a link.

<SCRIPT>
message = "Welcome To Ta[M]iYa's World.^" +
"I'll Be Updating This Page Whenever I'm Free^" +
"Please Feel Free To Write In The Forum & GuestBook^" +
"Hope You Enjoyed Your Stay Here.^" +
"Do Come Back Again. Ta[M]iYa 2004 ...^" +
"^"
scrollSpeed = 25
lineDelay = 1500


txt = ""

function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze = scrollSpeed
}
else {
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}

// Unhide -->
scrollText(0)
</SCRIPT>


__________________
Ta[M]iYa - There Is a Monster In My Car
__________________
Ta[M]iYa - There Is a Monster In My Car :D
Tamiya is offline   Reply With Quote
Old 02-07-2004, 01:45 PM   PM User | #2
Vladdy
Senior Coder

 
Join Date: Jun 2002
Location: Nashua, NH
Posts: 1,724
Thanks: 0
Thanked 0 Times in 0 Posts
Vladdy is an unknown quantity at this point
What's wrong with allowing visitor seeing where the link leads???
__________________
Vladdy | KL
"Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Vladdy is offline   Reply With Quote
Old 02-09-2004, 11:20 AM   PM User | #3
Tamiya
New to the CF scene

 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Tamiya is an unknown quantity at this point
I just want to hide it

Can anyone help?
__________________
Ta[M]iYa - There Is a Monster In My Car :D
Tamiya is offline   Reply With Quote
Old 02-09-2004, 12:01 PM   PM User | #4
Vladdy
Senior Coder

 
Join Date: Jun 2002
Location: Nashua, NH
Posts: 1,724
Thanks: 0
Thanked 0 Times in 0 Posts
Vladdy is an unknown quantity at this point
Leave it alone - status bar is part of user's browser not your site.
__________________
Vladdy | KL
"Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Vladdy is offline   Reply With Quote
Old 02-10-2004, 04:02 AM   PM User | #5
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
http://www.codingforums.com/showthre...threadid=25667
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 02-10-2004, 05:44 AM   PM User | #6
Tamiya
New to the CF scene

 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Tamiya is an unknown quantity at this point
Nvm.. Maybe I'll just hide the status bar.. hide them all
__________________
Ta[M]iYa - There Is a Monster In My Car :D
Tamiya is offline   Reply With Quote
Old 02-10-2004, 02:35 PM   PM User | #7
Vladdy
Senior Coder

 
Join Date: Jun 2002
Location: Nashua, NH
Posts: 1,724
Thanks: 0
Thanked 0 Times in 0 Posts
Vladdy is an unknown quantity at this point
Good Luck

MY browser:
__________________
Vladdy | KL
"Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Vladdy is offline   Reply With Quote
Old 02-10-2004, 03:34 PM   PM User | #8
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Tamiya,

Many things are possible but not everything is good. One thing that's been possible for a long time is putting scrolling messages into the status bar. It's also been found that such messages don't work well, the end user has a tendancy to miss them or to get frustrated because the animation of the scroller doesn't fit the speed the user likes to read at (it's almost always too fast or too slow).

Moving text is also more difficult to read, I'd suggest you place your message in the main body of your page and if you feel it's really, really important that people notice it go ahead and add a small animated bullet type image in front of the message to draw peoples attention to that spot.

Be aware that for a good page that helps the user as much as possible you'll want to limit any animation on the page, it's useless to try drawing someone's attention to a message if much of the rest of the page looks like an explosion happened at the Acme factory.

All that said, what you're asking for isn't readily accomplished. You'd have to hook the mouseover event for every link on the page and alter it to show the current message from your animated status bar. The easy way of doing that would be to iterate through the document.links collection.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 02-10-2004, 03:53 PM   PM User | #9
Garadon
Regular Coder

 
Join Date: Jul 2002
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
Garadon is an unknown quantity at this point
This hides the url largely but if clicked it shows the url, only 1st time though .

think its some sort of evil IE securty

oh and since its me I only say it works in IE, don't code to other browsers.

Code:
 
<script>
function hidestatus()
{
  if(event.srcElement.tagName=='A')
	{	
   return true;
  }
}
document.onmouseover=hidestatus
document.onmouseout=hidestatus
document.onmousedown=hidestatus
document.onmouseup=hidestatus
document.onclick=hidestatus
</script>
<body>
<a href="www.test.com">Click here</a>
</body>
Garadon is offline   Reply With Quote
Old 02-11-2004, 09:00 PM   PM User | #10
FastCougar
Regular Coder

 
Join Date: Jan 2004
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
FastCougar is an unknown quantity at this point
I just tried the above code in Netscape 7.1 and it doesn't work

Last edited by FastCougar; 02-11-2004 at 09:05 PM..
FastCougar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:19 AM.


Advertisement
Log in to turn off these ads.