Roll over effect

  • Thread starter Thread starter Nino
  • Start date Start date
N

Nino

I looking to make a rollover through a link in which it will make a picture
appear on a specific point of my choosing on the page.Can this be done with
FrontPage.

Thanks

Nino
 
-----Original Message-----
I looking to make a rollover through a link in which it
will make a picture appear on a specific point of my
choosing on the page.Can this be done with FrontPage.

Thanks

Nino

The Behaviors feature in FrontPage 2003 can do this
entirely through the GUI.

If you have an earlier version, try this:

First, switch to HTML view and add a name= attribute to
the picture you want to change. For example:

<img src="lark1.jpg" name="rovpic">

Then, add a script to your <head> section such as:

<script language="JavaScript">
var rov1 = new Image(); rov1.src = "images/lark1.jpg"
var rov2 = new Image(); rov2.src = "images/lark2.jpg"
</script>

where images/lark.jpg and images/lark2.jpg are the two
different picture versions you want.

Finally, surround the mouse-sensitive content with a
hyperlink such as the following:

<a href="javascript:;"
onmouseover="document.rovpic.src = eval('rov2.src');"
onmouseout="document.rovpic.src = eval('rov1.src');">
Your content goes here.</a>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Goto -View toolbars - dhtml effects check it. Insert a
picture - left click it once then choose on the dhtm bar
drop down - choose an event - on mouse over - choose an
effect - swap picture - choose settings - choose picture -
browse to picture in your web. Note: both images should
already be in your web
 
Jim,
You gave an excellent answer except for 1 point. "...a picture appear on a
specific point of my choosing..." Unless I am completely confused, the
JavaScript you wrote changes the image at the site of the button, whereas
they want it to change at an arbitrary location. I'd swear I saw a way to
do it in a JavaScript class but I am still learning...

Respectfully,
Tom Miller, A+, CNA5.1
 
Net55 said:
Goto -View toolbars - dhtml effects check it. Insert a
picture - left click it once then choose on the dhtm bar
drop down - choose an event - on mouse over - choose an
effect - swap picture - choose settings - choose picture -
browse to picture in your web. Note: both images should
already be in your web
I have used what you have suggested and really like it. But how do you make
it "....appear on a specific point of my choosing .."?

Respectfully,
Tom Miller, A+, CNA5.1
 
No, the <img> tag can be wherever you want it to be, and the tag that
contains the onmouseover and onmouseout attributes can be wherever you
want it to be.

Here's a complete page.

<html>
<head>
<title>Remote Rollover</title>
<script language="JavaScript">
var rov1 = new Image(); rov1.src = "../images/onion.gif"
var rov2 = new Image(); rov2.src = "../images/onion2.gif"
</script>
</head>
<body>
<p><img src="../images/onion.gif" name="rovpic" width="56"
height="61"></p>
<p>Other content goes here.</p>
<p><a href="javascript:;"
onmouseover="document.rovpic.src = eval('rov2.src');"
onmouseout="document.rovpic.src = eval('rov1.src');">
Rollover trigger goes here.</a></p>
</body>
</html>


Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
You said in FP2003, you can do this entirely inside of the GUI? How? I can't find any step-by-step instructions anywhere. Does it have something to do a change property event for the image behavior? I can't figure that one out at all.
 
Select the image on the page, then use Format Behavior (Insert) Swap Image

--




| You said in FP2003, you can do this entirely inside of the GUI? How? I can't find any step-by-step instructions anywhere. Does
it have something to do a change property event for the image behavior? I can't figure that one out at all.
 
Select the image on the page, then use Format Behavior (Insert) Swap Imag

Can you be a bit more specific as to how that can make an image appear "on a specific point of choosing"? As far as I can tell, that only will make an image appear on the same location as the image the behavior is being applied to. What if I have image A on the left of the page and I want image B to appear on the right of the page, upon a mouseover of picture A

Jim Buyens said that the remote rollover can be done within the Frontpage 2003 GUI. I'd like to know how to do that
 
See www.rxs-enterprises.com/tests/rollover.htm
--
Ron
Reply only to group - emails will be deleted unread.

BB Iverson said:
Image

Can you be a bit more specific as to how that can make an image appear "on
a specific point of choosing"? As far as I can tell, that only will make an
image appear on the same location as the image the behavior is being applied
to. What if I have image A on the left of the page and I want image B to
appear on the right of the page, upon a mouseover of picture A?
Jim Buyens said that the remote rollover can be done within the Frontpage
2003 GUI. I'd like to know how to do that.
 
Thanks for the help. However, I neglected to mention that my image 1 is an interactive button. I didn't see where to change the location of the image 1, as it is an interactive button, to "javascript:;" so I left that unchanged. I tried to insert it in code view, but it conflicted with the hyperlink of the interactive button

The swap image for image 2 worked great onmouseover, but it didn't change back to the original image 2 onmouseout. The button didn't change back to its original image, either. Could the two onmouseout events be conflicting each other?
 
See inline below
--
Ron
Reply only to group - emails will be deleted unread.

BB Iverson said:
Thanks for the help. However, I neglected to mention that my image 1 is
an interactive button.

No problem, but may be an issue if you need to edit the button properties.
I didn't see where to change the location of the image 1, as it is an
interactive button, to "javascript:;" so I left that unchanged.

The image needs to be a hyperlink. "javascript:;" is a valid location that
does nothing. Leave the button's hyperlink unchanged.
I tried to insert it in code view, but it conflicted with the hyperlink of the interactive button.

The swap image for image 2 worked great onmouseover, but it didn't change
back to the original image 2 onmouseout.

If this is my example, that was intentional - just change the onmouseout
image location to that of the original Image 2.
The button didn't change back to its original image, either. Could the two
onmouseout events be conflicting each other?

It's possible - but does not happen in my tests. See
www.rxs-enterprises.com/tests/rollover.htm (revised)
 
So, what is the fix for this? How can I work around not affecting the button's images, but having the remote rollover image show up upon mouseover (elsewhere on the page) and go away upon mouseout?
 
So, what is the fix for this?

Fix for what? If you quoted the post you are responding to it makes it
easier to answer.
How can I work around not affecting the button's images, but having the
remote rollover image show up upon mouseover (elsewhere on the page) and go
away upon mouseout?

There is an example of this on www.rxs-enterprises.com/tests/rollover.htm
where a remote image is swapped with another when an Interactive Button is
moused over, and the original image replaced on mouseout.
If you want the image to appear and disappear altogether, then you are going
into the world of layers and absolute positioning, which may be easy or
difficult depending on your page construction, and your target audience's
choice of operating system, browser size and/or screen resolution.
 
Your revised test did the trick! It works like a charm. That process should be added to all help docs for Frontpage 2003. I couldn't find anything like it elsewhere. Thanks a bunch!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top