Mouse Over to Status Bar
I am currently using a mouse over to place a word definition in the status bar. Problem is that the definition is too long to fit in the status bar.
Does anyone know how I can either scroll the mouse over message or post several lines?
Need Help.
------------------
Anonymous posted this at 00:34 — 8th January 2000.
They have: 5,633 posts
Joined: Jan 1970
Your best bet would be to place the text somewhere other then the status bar.
You can use JavaScript to have an image with the text appear or you could use DHTML and have a layer pop-up. You can also use ALT tags, which sort of have the same effect if the link is an image.
Check out www.dynamicdrive.com
------------------
Adam
AIS Internet Solutions
[email protected]
www.aisinternet.com
John Pollock posted this at 05:45 — 8th January 2000.
He has: 628 posts
Joined: Mar 1999
You can use a text box or text area as well. I'm not sure if a scroller is feasible for a mouseover type script, but might be better suited for an onClick event.
I was thinking you had this solved from your last post at the JSC forum? Did it not work?
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
Rose Byma posted this at 05:00 — 10th January 2000.
They have: 4 posts
Joined: Dec 1999
Thanks RC, I'll give it a try.
Rose Byma posted this at 05:50 — 10th January 2000.
They have: 4 posts
Joined: Dec 1999
RC, The code you provided will only work for one definition to be scrolled in the status bar.
My problem is that the document I'm working on is of a legal nature and has multiple definitions through out the document. Because of this, I didn't want to use pop-up boxes as it could become very distracting. but so far I haven't been able to find any thing else that would work.
Rose Byma posted this at 15:41 — 10th January 2000.
They have: 4 posts
Joined: Dec 1999
Had the text in the status bar figured out until I came across some text that wouldn't fit. I've also come across scrolling text in the status bar, but not a mouse over function. I need one that does both.
RC posted this at 16:47 — 10th January 2000.
They have: 89 posts
Joined: Sep 1999
This should solve your problem.
Normally, status scrolling scripts are executed with onload so that they go when the page loads. To simply solve your problem you could just call the scrolling script with onmouseover (ie onmouseover="scrolling() )You wouldn't even have to do anything else.
BUT
For some reason scrolling scripts stick around even if you onmouseout="window.status=''" so I wrote this little thing. You will have to enter the text you want scrolling in two places. anyways, check it out and let me know if you have any questions
<html>
<head>
<script language="JavaScript">
<!--
//
var statBarMsg = " Blah Blah Blah Blah Blah Blah " ;
function startStatusScroller() {
window.status = statBarMsg;
statBarMsg = statBarMsg.substring(1, statBarMsg.length) + statBarMsg.substring(0, 1)
setTimeout("startStatusScroller()", 150)
}
function endStatusScroller() {
statBarMsg = ''
}
function resetStatusScroller() {
statBarMsg = " Blah Blah Blah Blah Blah Blah " ;
}
//-->
</SCRIPT>
</head>
<body>
<A HREF="apage.htm" onMouseOver="resetStatusScroller();startStatusScroller();return true" onMouseOut="endStatusScroller();return true">text link</A>
</body>
</html>
Vincent Puglia posted this at 19:28 — 10th January 2000.
They have: 634 posts
Joined: Dec 1999
Hi Rose,
If it legalgoop and you don't want to annoy people who already know the term, use named anchors. You can put all of your definitions on a separate page (along with a go-back named anchor). I think off-page anchors would be better than textboxes or layers, because they keep page size down and user interaction to a minimum (if you use layers, the user would have to click them off)
Vinny http://members.aol.com/grassblad
------------------
Where the world once stood
the blades of grass cut me still
RC posted this at 20:01 — 10th January 2000.
They have: 89 posts
Joined: Sep 1999
Hmmm...yes it is giving me problems when I add more links.....may have to think awhile on this...
You know you may be better off going with two frames and onmouseover to document.write in the smaller frame.
You could set up the page like this
____________________
| |
| |
| Frame 1 |
| |
| |
| |
| |
|--------------------|
| Frame 2 |
|--------------------|
then you could document.write your text in frame 2 when you had a mouseover in frame 1
*shrug*
JP Stones posted this at 11:22 — 12th January 2000.
They have: 2,390 posts
Joined: Nov 1998
You could have everythibg pop up in the SAME pop up window as that would not be so distracting...
JP
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.