Solved

Mouseover

Posted on 2001-08-03
12
432 Views
Last Modified: 2006-11-17
You can consider me an amateur web developer.  I am creating a page with links.  Not hard.  Have that.  However, when you mouseover the links, I want a small blip of information to appear. I thought I had the right code, but I keep getting a RTE on the Caption Parameter.

Here's what I have:

<a href="info.html" on mouseover="overlib('More information here', CAPTION, 'Articles')" onmouseout="nd()">Information</a>

The error always pops up on CAPTION.  

Any ideas?
0
Comment
Question by:ambulance
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 6349506
You need to provide the overlib function as well.

And change:

"on onmouseover" to "onmouseover"

I suspect you need to provive CAPTION in quotes 'CAPTION'
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6349512
Is caption defined.. if not you must use:
<a href="info.html" mouseover="overlib('More information here', 'CAPTION', 'Articles')" onmouseout="nd()">Information</a>
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6349516
oops didn't see dorward's last comment..

another option is to declare caption:

<script>
var CAPTION = 'my caption or whatever';
</script>

CJ
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:ambulance
ID: 6349582
I changed my script to read:

<a href="info.html" onmouseover="overlib('More information here', 'CAPTION', 'Articles')" onmouseout="nd()">Information</a>

I kept getting the RTE - object not defined.

So, I used your declaration -
<script>
var CAPTION = 'my caption';
</script>

without altering the line.

Still get the RTE.  I'm using Front Page 98.  I'm missing something simple, aren't I?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6349594
overlib() and nd() are defined right?

CJ
0
 

Author Comment

by:ambulance
ID: 6349627
uh...hmmm...nope.  Do I do that in the heading the same way the CAPTION was done?

Can you tell I'm no good at this yet?  tee hee

0
 

Author Comment

by:ambulance
ID: 6349632
Actually, I do have the library call....<script language="Javascript" src="overlib.js"></script>

but how do I tell if I actually have that?  I'm also using a laptop.  Does that make a difference?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6349723
open overlib.js and make sure it has the two functions that you are calling.

a laptop should make no difference.

Out of curiosity.. what is this code supposed to do?

CJ
0
 

Author Comment

by:ambulance
ID: 6349767
When you mouseover the links, I want a small blip of information to appear.

I'll check that the functions are in overlib.js.

Thanks.
0
 
LVL 4

Accepted Solution

by:
daluu earned 50 total points
ID: 6352751
Just a suggestion, ambulance:

If all you want is a bit of info to appear (popup) when the mouse hovers over the links, I find it simpler to use the title attribute of the hyperlink tag. I'm not sure if that is widely supported by most browsers but IE supports it. Come to think, I should check on that.

All you have to do is modify your links like this:
<a href="link.htm" title="Your bit of info">the link</a>

This method is a lot simpler, doesn't require javascript, and works if your popup info itself does not need formatting or contains more links, etc.
0
 

Author Comment

by:ambulance
ID: 6355758
That does exactly what I need it to do.  Now, is there a character limit?  

Thanks!
-A
0
 
LVL 4

Expert Comment

by:daluu
ID: 6357551
Not sure, I gotta check on that. You can try looking up info on that on the web or try adding a lot of text in the title and see if it will all show.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question