Couple questions about flash and javascript!

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
armababy
Posts: 30
Joined: Wed 22. Aug 2007, 06:14

Couple questions about flash and javascript!

Post by armababy »

Hello phpwcms community!

I have three questions.

1) I have created flash banner and included it in needed place with this code (Firefox shows flash animation banner without a problems, but IE7 doesn't show flash at all - so how can this be done to resolve it in IE7 ?)

Code: Select all

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="239" height="148" id="fbann" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="fbann.swf" /><param name="quality" value="best" /><param name="bgcolor" value="#191919" />	<embed src="img/straddle/fbann.swf" quality="best" bgcolor="#191919" width="239" height="148" name="fbann" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
2) phpWcms>admin>templates field js onload: (where i have to put js file in phpwcms folders and what path i have to show to work this ?)

3) Can someone please take look at my code source and tell me why my webs width is so extremly wide ? http://www.straddle.lv/file/width.JPG

P.S : web is http://www.straddle.lv/cms/
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: Couple questions about flash and javascript!

Post by DeXXus »

armababy wrote:Hello phpwcms community!

I have three questions.

1) I have created flash banner and included it in needed place with this code (Firefox shows flash animation banner without a problems, but IE7 doesn't show flash at all - so how can this be done to resolve it in IE7 ?)

Code: Select all

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="239" height="148" id="fbann" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="fbann.swf" /><param name="quality" value="best" /><param name="bgcolor" value="#191919" />	<embed src="img/straddle/fbann.swf" quality="best" bgcolor="#191919" width="239" height="148" name="fbann" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
Try this change:
<param name="movie" value="img/straddle/fbann.swf" />
Then you ask:
armababy wrote:2) phpWcms>admin>templates field js onload: (where i have to put js file in phpwcms folders and what path i have to show to work this ?)
If you choose to locate your javascript files outside phpWCMS structure...just make sure to include the "absolute" path when you fill out that block.
Inside phpWCMS structure you can create your own sub-folder -or- use existing ("/include/inc_js")...just make sure to include the "relative" path when you fill out that block.
armababy
Posts: 30
Joined: Wed 22. Aug 2007, 06:14

Post by armababy »

Thank you DeXXus for very helpful post :)

Changing value parameter solved flash issue and now i know how to include js on page!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: Couple questions about flash and javascript!

Post by DeXXus »

armababy wrote:3) Can someone please take look at my code source and tell me why my webs width is so extremly wide ? http://www.straddle.lv/file/width.JPG

P.S : web is http://www.straddle.lv/cms/
Missed this one. :oops:
Instead of troubleshooting and explaining... just add this quick and dirty Universal Reset to beginning (TOP) of your CSS file:

Code: Select all

/* universal reset - short form */
*{margin:0;padding:0}
armababy
Posts: 30
Joined: Wed 22. Aug 2007, 06:14

Post by armababy »

Ok i did that but its aligned website to the total left @ Firefox and @IE7 it didn't any changes

(added your suggestion at the top of my frontend.css )
:lol:

+ Just downloaded FireFox plugin Web Developer Plugin :D (wich is very best ) and saw that one div is not sized :oops:

1) FIXED
2) FIXED
2) FIXED
Post Reply