Answered by:
Swap Image Behaviours in EW 4

Question
-
The Expression Web Swap Image Behaviour works ok. But when I viewed the code that was generated, I noticed all those FPs. I have a feeling the FP stands for FrontPage. Does this mean the code is outdated and that I should search for some other Javascript code? Any info on this would be appreciated.
Clive J. Soden
- Moved by Lori DirksModerator Friday, March 2, 2012 6:15 PM moving to Web (From:Expression Community Site Feedback)
Friday, March 2, 2012 1:09 AM
Answers
-
The built in code generated for behaviors is indeed old, outdated, bloated, and can be easily replaced with CSS and/or far less bulky javascript by those, such as yourself, willing to take a little time and find it. :)
- Marked as answer by CliveS Monday, March 5, 2012 7:04 PM
Friday, March 2, 2012 6:19 PM -
Kathy, Thanks for confirming my suspicions.
Clive J. Soden
- Marked as answer by CliveS Monday, March 5, 2012 7:04 PM
Friday, March 2, 2012 9:06 PM
All replies
-
I'll send a reply to my own question. I found some swap image code using just CSS. It work great. You just have to create a style for each image swap. The code is by Kyle Schaeffer titled "Pure CSS Image Hover" at: http://kyleschaeffer.com/best-practices/pure-css-image-hover/ I'd be interested in any comments to this thread.
Clive J. Soden
- Proposed as answer by TlGalenson Monday, March 5, 2012 12:23 AM
- Marked as answer by CliveS Monday, March 5, 2012 7:03 PM
- Unmarked as answer by CliveS Monday, March 5, 2012 7:04 PM
Friday, March 2, 2012 6:20 AM -
The built in code generated for behaviors is indeed old, outdated, bloated, and can be easily replaced with CSS and/or far less bulky javascript by those, such as yourself, willing to take a little time and find it. :)
- Marked as answer by CliveS Monday, March 5, 2012 7:04 PM
Friday, March 2, 2012 6:19 PM -
Kathy, Thanks for confirming my suspicions.
Clive J. Soden
- Marked as answer by CliveS Monday, March 5, 2012 7:04 PM
Friday, March 2, 2012 9:06 PM