Page 1 of 1

Couple questions about flash and javascript!

Posted: Mon 3. Sep 2007, 19:05
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/

Re: Couple questions about flash and javascript!

Posted: Mon 3. Sep 2007, 23:47
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.

Posted: Tue 4. Sep 2007, 00:28
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!

Re: Couple questions about flash and javascript!

Posted: Tue 4. Sep 2007, 00:54
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}

Posted: Tue 4. Sep 2007, 01:11
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