Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 03-01-2007, 09:31 AM
RESynergy RESynergy is offline
Real Estate WebMaster
 
Join Date: Nov 2006
Posts: 109
RESynergy is on a distinguished road
Default curious -about javascript-flash interaction

I'm using javscript for a menu which basically changes the jpg imgs at a mouseover. The idea occured to me the neet effect it would be if the second pic would be a flash pic instead of the jpg. This sounds simple, just rename the extensions in the javascript code and replace the jpg images with swf images.

Would this work? Doing this wouldn't require any link function in the flash image either, right, as the javascript uses the image region as the click area?

It seems like it would also act as a sort of preloader too, wouldn't it, as the swfs wouldn't need to load until after the rest of the page loaded. Would that loading sequence happen by default or would it need some code to tell the browser not to load swfs until loading the rest of the page? Their small files so it wouldn't be a huge difference.

Last edited by RESynergy; 03-01-2007 at 09:36 AM.
Reply With Quote
Old 03-01-2007, 10:23 AM
Borino's Avatar
Borino Borino is offline
Real Estate Web Guru
 
Join Date: Dec 2006
Location: Los Angeles, CA
Posts: 322
Borino is on a distinguished road
Default Re: curious -about javascript-flash interaction

Why mix js and flash? Wouldn't it be easier to build and load the entire menu as flash?

As a side note, I personally am not a big fan of flash nav since certain percentage of the site visitors don't have flash installed and they can't navigate the site unless you have a detection/redirect in place.
__________________
Borino
Complete Expired Listings Marketing System: Expired Letters, Postcards, follow-up marketing, and much more.
How to List Expired Listings
Real Estate Marketing Blog
Reply With Quote
Old 03-01-2007, 11:33 AM
RESynergy RESynergy is offline
Real Estate WebMaster
 
Join Date: Nov 2006
Posts: 109
RESynergy is on a distinguished road
Default Re: curious -about javascript-flash interaction

Quote:
Originally Posted by Borino View Post
Why mix js and flash? Wouldn't it be easier to build and load the entire menu as flash?
Not necessarily, because I am "cheating" and using Xara menu builder. Only takes afew minutes to build a menu, or modify it. But it is all javascript

Quote:
Originally Posted by Borino View Post
As a side note, I personally am not a big fan of flash nav since certain percentage of the site visitors don't have flash installed and they can't navigate the site unless you have a detection/redirect in place.
I agree, totally. I want to stay away from flash nav too. But my realization (if this will work) is that there might be a big difference between using flash as images, rather than the application. I mean if the application is javascript and it is merely opening an image as part of its mouseover subroutine, does it matter to the browser whether that image is a jpg, png, gif or SWF?

I guess the basic question would come down to whether a browser could handle a swf extension with a few animations in it if the user hadn't installed flash?

Perhaps I just need to replace the jpgs with animated gifs instead of flash to get the effect I am talking about.
Reply With Quote
Old 03-01-2007, 07:01 PM
REW Fergus's Avatar
REW Fergus REW Fergus is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 588
REW Fergus is on a distinguished road
Default Re: curious -about javascript-flash interaction

If the user hasn't installed the Flash plug-in, the browser has no knowledge or understanding of Flash. What you are proposing simply would not work without the plug-in.
__________________
Fergus Gibson
realestatewebmasters.com
Reply With Quote
Old 03-02-2007, 12:27 AM
RESynergy RESynergy is offline
Real Estate WebMaster
 
Join Date: Nov 2006
Posts: 109
RESynergy is on a distinguished road
Default Re: curious -about javascript-flash interaction

Hey Fergus,

ok, good to know. Thanks
Reply With Quote
Reply


Thread Tools
Display Modes

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



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 06:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.