I'm confused over the mouse rollover effects and javascript

T

Tom Miller

This is some html code from a FrontPage website that clearly works on the
webserver:

<a href="home.htm">
<img border="0" id="img1" src="images/buttonA.jpg" height="30"
width="150" alt="home" fp-style="fp-btn: Glass Rectangle 5; fp-font: Arial
Black; fp-font-color-normal: #004185; fp-font-color-hover: #004185"
fp-title="home"
onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/buttonB.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/buttonA.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/buttonC.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/buttonB.jpg')"></a></p>

And its not working when I move it off the server with FPSE on it. Is
"FP_swapImg" function call only available on a server with FPSE? I thought
it was straight javascript code?

Thanks,
Tom Miller

--
Who me? What signature?

I manage design and acquistion of data-driven websites at:
http://BlueCollar.ChatNFiles.com
Linkedin Profile: http://www.linkedin.com/in/tlgalenson
www.ChatNFiles.com has telnet chatting and more than 500,000 downloads
 
R

Ronx

FP_swapimg() is "straight Javascript code". But the function must be in the
page or in an external .js file.
Copying the link does not copy the javascript, but FrontPage usually
recreates the code if you have a web open and switch between Design and Code
view. Not always though.

Since FrontPage behaviours (including swap_image sometimes disappear from
the page, I place the Javascripts in an external file and link to file in
each page that uses them.
See the code in http://www.rxs-enterprises.org/fp/b/buttons/ for an
example.
Look for <script type="text/javascript"
src="/_themes/fp_functions.js"></script>

(And I just noticed the on-page version of the swap image behaviours has
gone again...)
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 

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

Top