View Full Version : Rollovers
WalterK
01-17-2006, 09:31 AM
The Insert menu in FirstPage 2000 includes "Javascript Rollover Image" which works fine. The corresponding item in First Page 2006 just reads "Rollover Image"; true to its name this inserts bare image rollover code without the additional Javascript code needed to make it work - so the rollover function does not work. Is there a way to insert the Javascript code and the rollover image code at the same time as in the old First Page (or even sequentially) or does one have to handcode the Javascript code? I am pretty new at this so maybe I am missing something obvious.
Thanks, WalterK
ANDREW_H
01-18-2006, 05:28 AM
The Insert menu in FirstPage 2000 includes "Javascript Rollover Image" which works fine. The corresponding item in First Page 2006 just reads "Rollover Image"; true to its name this inserts bare image rollover code without the additional Javascript code needed to make it work - so the rollover function does not work. Is there a way to insert the Javascript code and the rollover image code at the same time as in the old First Page (or even sequentially) or does one have to handcode the Javascript code? I am pretty new at this so maybe I am missing something obvious.
Thanks, WalterK
Hi there,
I've tried this and it works fine for me. The "Rollover Image" feature in First Page 2006 inserts cleaner, more advanced Javascript code than the similar routine in First Page 2000. This will work as long as you remember to insert the name you gave the First Image into the inserted code between the brackets in the section which reads "onMouseOut="RestoreImg()"
WalterK
01-18-2006, 08:53 AM
Andrew_H: Thanks for the reply. In your edit you mention that the Javascript code is put in the body instead of the head. I am not getting any Javascript code inserted either place other than the one "...onMouseOut=...." line, which appears correct but is not sufficient by itself as far as I know. Are you getting additional Javascript code inserted automatically? FP2000 does insert the rest of the needed Javascript for me. Am I omitting a step that is now needed in FP2006? Maybe I should reinstall the program. I would appreciate any help on this. The preview seen in the dialog box while setting up the rollover works fine in both FP versions. Thanks in advance.
Walter K.
Hi there,
I've tried this and it works fine for me. The "Rollover Image" feature in First Page 2006 inserts cleaner, more advanced Javascript code than the similar routine in First Page 2000. This will work as long as you remember to insert the name you gave the First Image into the inserted code between the brackets in the section which reads "onMouseOut="RestoreImg()"
ANDREW_H
01-19-2006, 04:32 AM
Andrew_H: Thanks for the reply. In your edit you mention that the Javascript code is put in the body instead of the head. I am not getting any Javascript code inserted either place other than the one "...onMouseOut=...." line, which appears correct but is not sufficient by itself as far as I know. Are you getting additional Javascript code inserted automatically? FP2000 does insert the rest of the needed Javascript for me. Am I omitting a step that is now needed in FP2006? Maybe I should reinstall the program. I would appreciate any help on this. The preview seen in the dialog box while setting up the rollover works fine in both FP versions. Thanks in advance.
Walter K.
Hi there,
Here is an example of the code that the routine inserts in the Body of my file:-
<a href="index.html" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.imageon','document.imageon','file:/images/Home_on.jpg')"><img src="file:/images/Home_off.jpg" name="imageon" width="940" height="30" alt="" border="0"></a>
However, I suspect that you are correct and that there is a bug in the routine in FP2006. I think that the routine should place a piece of Javascript code within the <HEAD> tag of your file which defines the function for RestoreImg() which the code needs to work correctly. You should log this as a bug in the Bug Reports forum.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.