|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
 |
Javascript Function in Firefox |
 |
|
 |
|
|
|
  09-22-05 - 12:24 AM
|
Hi,
I'm pretty new to Mozilla and was wondering about this Javascript function I
'm
able utilize in I.E. I'm in the process of updating my website to be
cross-browser compatible, the following function does not work in Firefox, a
nd
I was hoping someone could shed some light on "why?" If this topic is
redundant, my apologies.
Initialize the function:
<SCRIPT LANGUAGE=JavaScript>
function doPassVar(args){
var sendText = args.value;
var sendText = "1"
window.document.myFlash.SetVariable("myVar", sendText);
}
</SCRIPT>
Pass the function:
<body bgcolor="#999999" onload="doPassVar(sendText);">
Initialize the Flash object:
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#ve
rsion=6,0,29,0" width="753" height="25" id="myFlash">
<param name="movie" value="../navigation/navBar_03.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<embed src="../navigation/navBar_03.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="753" height="25" name="myFlash"
swLiveConnect="true"></embed></object>
</td>
</tr>
This works like a superstar in Internet Explorer, but not at all in Mozilla
Firefox. I'm sure it doesn't work in Netscape either, but I'm just starting
to
tackle all this. Any help, direction, or links would be fab, not really sure
where to start with this.
Thanks,
~Chipley
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
 |
Re: Javascript Function in Firefox |
 |
|
 |
|
|
|
 |
 |
Re: Javascript Function in Firefox |
 |
|
 |
|
|
|
  09-23-05 - 12:32 AM
|
Hey Vern,
Thanks for all the info. Your link to the source code worked like a charm fo
r
me. I took the script and converted it into an external .js file after
deconstructing, I'm now in the process of applying that technique to my whol
e
site. there were a few things I did notice that aren't compatible in
Mozilla(like I said in my first thread, i'm new to Firefox). In the assemble
flash object, Mozilla ignores the continuation (;) at the end of each line i
n
the Javascript, that punctualtion was showing up on my page before I deleted
them:
// assemble flash obj
var l1 = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#ve
rsion=6,0,29,0" width="'+width+'" height="'+height+'">;'
var l2 = '<param name="movie" value="'+src+queries+'" />;'
var l3 = '<param name="quality" value="high" />;'
var l4 = '<embed src="'+src+queries+'" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="'+width+'"
height="'+height+'"></embed>;'
var l5 = '</object>'
I checked out your site and it looks like you found that too. Anyway, thanks
a
million. Problem solved.
Kind regards,
~Chipley
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
| All times are GMT. The time now is 07:45 AM. |
 |
|
|
|
|
|  |
|