| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
|
hi there, i having some banners on my website , each time i visit the site, the banner changes randomly, i am using this script
PHP Code:
But the problem i am facing is i want to add a prameter with value... for eg. <param=movie value=wsmode> please help me... how can i add a flash param. in this javascript. and where to put the param.? |
|
|
|
|
|
#2 |
|
Me
|
original piece:
Code:
<!-- Hide this script from old browsers --
//document.write('<embed SRC="images/' + image + '" width="753" height="410">')
document.write('<center>');
document.write('<embed src="' + image + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="753" height="410"></embed>');
document.write('</center>');
// -- End Hiding Here -->
adjusted piece: Code:
<!-- Hide this script from old browsers --
//document.write('<embed SRC="images/' + image + '" width="753" height="410">')
document.write('<center>');
document.write('<embed src="' + image + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="753" height="410"></embed>');
document.write('<param=movie value=wsmode>');
document.write('</center>');
// -- End Hiding Here -->
- Ruben
__________________
. Originally Posted by MichaelxxOA "He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit." Last edited by Ruben; 08-04-2004 at 08:02 PM.. |
|
|
|
|
|
|
|
|
#3 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
<param > tag is use for the <object> tag.
<object> tag is read by ie... i don't believe ie reads the <embed> tag.
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
#4 | |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
Quote:
to do what you want look at the examples on this page: http://www.macromedia.com/support/fl...ents/wmode.htm
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
|
#5 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
actually after looking at your code, my second link may be wrong... maybe thats not what your trying to do... but the idea is still the same... if your passing a variable/value pair, then you can use 'flashVars' the same way.
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
#6 | |
|
Me
|
Quote:
Anyways, the idea stays the same... - Ruben
__________________
. Originally Posted by MichaelxxOA "He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit." |
|
|
|
|
|
|
#7 | |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
Quote:
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
|
#8 |
|
Senior Member
|
hay wait a min....
this code doesnt work then how i make it work???? please help. code after editing... which doesnt work. Code:
<!-- Hide this script from old browsers --
//document.write('<embed SRC="images/' + image + '" width="753" height="410">')
document.write('<center>');
document.write('<embed src="' + image + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="753" height="410"></embed>');
document.write('<PARAM NAME=menu VALUE=false>');
document.write('</center>');
// -- End Hiding Here -->
__________________
Regards Interactive Designer. Last edited by darkstyle; 08-07-2004 at 10:25 AM.. |
|
|
|
|
|
#9 |
|
Senior Member
|
when i put object tag it doesnt work...
__________________
Regards Interactive Designer. |
|
|
|
|
|
#10 |
|
Me
|
Well, basically I've just told you how to insert other lines to the code you're using, you can figure out the structure yourself by looking at the source of an html-file in which a swf has been embedded
- Ruben
__________________
. Originally Posted by MichaelxxOA "He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit." |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|