PC Review


Reply
Thread Tools Rate Thread

button behavior

 
 
jvles
Guest
Posts: n/a
 
      31st Jan 2005
I have the following code for one of my buttons. Everything works
perfectly, except that when the mouse gets off the button, the color of
the button doesn't change (most of the time, sometimes it does...):

<td valign="top"><a href="collections.htm">
<img border="0" id="img5" src="images/button1C.jpg" height="20"
width="100" alt="Collections" fp-style="fp-btn: Simple Text 1; fp-font:
Verdana; fp-font-color-normal: #C0C0C0; fp-font-color-hover: #CC3300;
fp-font-color-press: #C0C0C0; fp-img-press: 0; fp-preload: 0"
fp-title="Collections"
onmouseover="FP_swapImg(0,0,/*id*/'img5',/*url*/'images/button1D.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'images/button1C.jpg')"></a></td>

 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      1st Feb 2005
If published post a URL to the page

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"jvles" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| I have the following code for one of my buttons. Everything works
| perfectly, except that when the mouse gets off the button, the color of
| the button doesn't change (most of the time, sometimes it does...):
|
| <td valign="top"><a href="collections.htm">
| <img border="0" id="img5" src="images/button1C.jpg" height="20"
| width="100" alt="Collections" fp-style="fp-btn: Simple Text 1; fp-font:
| Verdana; fp-font-color-normal: #C0C0C0; fp-font-color-hover: #CC3300;
| fp-font-color-press: #C0C0C0; fp-img-press: 0; fp-preload: 0"
| fp-title="Collections"
| onmouseover="FP_swapImg(0,0,/*id*/'img5',/*url*/'images/button1D.jpg')"
| onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'images/button1C.jpg')"></a></td>
|


 
Reply With Quote
 
jvles
Guest
Posts: n/a
 
      1st Feb 2005
here's the URL:

http://www.pier34solutions.com/latifadesign

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      1st Feb 2005
I suspect it you onbody mouseout preventing the swap
<body topmargin="0" leftmargin="0"
onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/latifa_front_page_button_collections_red.jpg');
FP_swapImg(1,1,/*id*/'img1',/*url*/'images/latifa_front_page_button_collections_red.jpg')" onmouseout="FP_swapImgRestore()"
onload="FP_preloadImgs(/*url*/'images/latifa_front_page_button_collections_red.jpg')">

Remove it and test the IB

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"jvles" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| here's the URL:
|
| http://www.pier34solutions.com/latifadesign
|


 
Reply With Quote
 
jvles
Guest
Posts: n/a
 
      1st Feb 2005
Stefan,
Thanks. I'll show you the code I changed it to, and it works.
<body topmargin="0"
leftmargin="0"onload="FP_preloadImgs(/*url*/'images/latifa_front_page_button_collections_red.jpg')">
My question is: why??? In fact, the code was entirely "Microsoft
generated" in its original form!
Now another question: this site is over a hundred pages. Is there any
tool I can use to change this code everywhere?
Thank for your help.
Regards.
Joe

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      2nd Feb 2005
The 1st code you had was generating a mouse over/out event that affected the whole page, thus overriding the individual events for
the buttons
- probably because that's the behavior you selected initially
Now you are just preloading an image for your mouse over of an image on the page (but there is no behavior set up for that image
(latifa_logo_front_page.jpg)
- but you are not preloading the IB mouseover images

Recommend changing the body tag to just <body topmargin="0">
Then editing your IB properties to include Preloads of your IB mouseover images (on the image tab)
Then selecting the image tag for latifa_logo_front_page.jpg on your page and creating a mouseover behavior for that image
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"jvles" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Stefan,
| Thanks. I'll show you the code I changed it to, and it works.
| <body topmargin="0"
| leftmargin="0"onload="FP_preloadImgs(/*url*/'images/latifa_front_page_button_collections_red.jpg')">
| My question is: why??? In fact, the code was entirely "Microsoft
| generated" in its original form!
| Now another question: this site is over a hundred pages. Is there any
| tool I can use to change this code everywhere?
| Thank for your help.
| Regards.
| Joe
|


 
Reply With Quote
 
jvles
Guest
Posts: n/a
 
      2nd Feb 2005
Stefan,

Thanks a lot; you've been most helpful.

Joe

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Button Behavior Edward R Windows Vista Performance 2 4th May 2007 02:08 PM
Inconsistent behavior of an asp.net button performing a postback when a button is clicked. Mossman Microsoft ASP .NET 0 12th Dec 2005 02:55 AM
Command Button Behavior Microsoft Excel Programming 1 3rd Sep 2004 12:56 AM
Go Back button behavior Alex Windows XP Internet Explorer 0 17th May 2004 09:31 AM
Close button behavior =?Utf-8?B?Y3RkYWs=?= Microsoft Access Form Coding 1 10th Apr 2004 11:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.