Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I am trying to create a popup window that opens automatically when you scroll over certain text, (e.g., to provide a definition to the terms scrolled over). Help!

I am trying to create a popup window that opens automatically when a mouse scrolls over a certain term, (e.g., to provide a definition of the term scrolled over). I've looked at the archives and just don't see how to do it. Help?!

iWeb '08, Mac OS X (10.6.8)

Posted on Dec 7, 2011 4:29 PM

Reply
20 replies

Dec 7, 2011 9:02 PM in response to bonniefrombaltimore

One way to do this is to use tooltips. To see what a tooltip looks like, hover your cursor over any hyperlink created with iWeb. The URL to the linked file appears in a box with a yellow background.


Creating these tooltips should simply be a matter of creating a hyperlink and entering your descriptive text instead of the URL. Unfortunately, iWeb thinks we are dumb if we don't add the http:// and does it for us so that's no use!


Most methods describing tooltips for iWeb involve editng the HTML file post publishing - which is a total pain.


This test page shows some tooltip methods that can be done using an iWeb Snippet. The one using the image tag is the easiest to achieve...


http://96.0.63.10/iWeb-Test/Tooltip.html

Dec 9, 2011 9:53 AM in response to Roddy

Uploaded the images in folders to root folder as directed. Didn't work. Not one of the mouse over directions worked. (I tried them all.) Insanely frustrated at this point! I am ready to give up on mouse over and would settle for a hyperlink to the new image, (appearing on the same page like a pop up text box), but a hyperlink to the image URL doesn't work either. Is there a secret to that too? I sincerely appreciate your help!!

Dec 9, 2011 10:49 AM in response to bonniefrombaltimore

Ok, getting there. Using this HTML language, it works, but the second image is teeny weeny, (presumably the same size as the first):


<script type="text/javascript">

function mouseOver()

{document.rollover_one.src="http://www.bonniecrockettconsulting.com/text-box.jpg"}

function mouseOut(){

document.rollover_one.src="http://www.bonniecrockettconsulting.com/question-mark-40x41.jpg"}

</script>

<img alt="Link Title" src="http://www.bonniecrockettconsulting.com/question-mark-40x41.jpg"} name="rollover_one" width="25" height="" onmouseover="mouseOver()" onmouseout="mouseOut()" style="border: none;"/></a>


When I try method #3 on http://oldtoad.net/Demo_1/Rollover.html, which says it allows the second image to be larger than the first, it doesn't work at all. However, I can't cut and paste the method #3 language, (it must be a jpg), so maybe I am doing something wrong when retyping it. I've tried is many times.

Dec 9, 2011 11:10 AM in response to Roddy

Try this...


<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

loadImage1 = new Image();

loadImage1.src="http://www.bonniecrockettconsulting.com/text-box.jpg";

staticImage1 = new Image();

staticImage1.src="http://www.bonniecrockettconsulting.com/question-mark-25.jpg";

// End -->

</script>

<span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">

<img name="image1" src="http://www.bonniecrockettconsulting.com/question-mark-25.jpg" border=0></span>

Dec 9, 2011 11:30 AM in response to bonniefrombaltimore

You can wrap the whole thing in a div and specify its size...


<div style="width: 350px; height: 153px">

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

loadImage1 = new Image();

loadImage1.src="http://www.bonniecrockettconsulting.com/text-box.jpg";

staticImage1 = new Image();

staticImage1.src="http://www.bonniecrockettconsulting.com/question-mark-25.jpg";

// End -->

</script>

<span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">

<img name="image1" src="http://www.bonniecrockettconsulting.com/question-mark-25.jpg" border=0></span>

</div>


In this first line...


<div style="width: 350px; height: 153px">


... enter the width and height of the enlarged image.

I am trying to create a popup window that opens automatically when you scroll over certain text, (e.g., to provide a definition to the terms scrolled over). Help!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.