1 carringt Aug 11, 2006 06:11
3 topanga Aug 11, 2006 13:57
a php-page is nothing more than a html page with special functions in between.
So you can absolutely put flashcode or javascript-code or... .. code in a php-file.
4 carringt Aug 11, 2006 16:09
ok well inserted the code for it right where the side bar is, above the calendar:
<!-- =================================== START OF SIDEBAR =================================== -->
<div class="bSideBar">
<div class="innerwrap">
<script type="text/javascript">
AC_FL_RunContent( 'width','300','height','160','id','mp3player','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','src','mp3player','name','mp3player','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mp3player' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="160" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="300" height="160" name="mp3player"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</div>
</div>
It doesn't show up just by doing this. is it because of the size differences? the flash player has a width of 300 but the side bar has a width of "29ex". what the crap does that mean?
5 yabba Aug 11, 2006 19:41
Apart from the fact that you have a </div> to many (assuming you have other stuff in yer sidebar)..... have you got the correct filename (mp3player.swf) .... if you do then, just for a laugh, copy it to your /skins/<skin name>/ folder and see if it works ;)
If not, can you provide a link to your page where it's not working?
¥
6 mrdav Aug 11, 2006 20:05
This is the entire code for a flash clock I have imbedded in a sidebar. Dreamweaver generates the necessay code, if you have access to it.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="110" height="110">
<param name="movie" value="clock132.swf">
<param name=quality value=high>
<embed src="clock132.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="110" height="110"></embed>
</object>
7 yabba Aug 11, 2006 21:05
You use dreamweaver? 8| No wonder you need to believe that stuff works "because" :|
¥
8 carringt Aug 11, 2006 21:18
ok I took out one of those </div> tags. and yes the files are all located in proper skin folder. This is the way the author of the file told me to add it to a page. The only thing i added to it are the <div bsidebar> and other div.
I also checked the files name and it is correct also.
The website is www.ajourneyforyouth.com/blog_page/
9 carringt Aug 11, 2006 21:19
what's wrong with dreamweaver? should I be using something else?
10 mrdav Aug 11, 2006 23:36
The only time I get a hard look at how things really work, my eyes cross. B)
Sides, because is why everything is the way it is...ask any parent.
11 carringt Aug 12, 2006 01:09
ok i got it working. I placed the object
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="29ex" height="160" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="200" height="160" name="mp3player"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
right under the first div for the calendar. I also adjusted the width to 29ex. (I still don't know what that is outside of somesort of measuring unit.) the problem i was having is that dreamweaver was asking me if i wanted to optimize code for internet explorer.
Dang it!!! I hate MS IE. there has never been a worse company or browser. i just toggled to me pc and brought up the site and sure enough it doesn't display for crap. Back to the drawing board
well it's working on mac os x firefox and safari
12 mrdav Aug 12, 2006 02:03
The width and height are referenced in 2 places in the code. I noticed you have 29 ex in one place and 200 px under embed.
I'm not sure, but this might cause a probelm with some browsers.
13 carringt Aug 12, 2006 02:17
ok here's the final that works in safari, firefox, and ie...
<!-- =================================== START OF SIDEBAR =================================== -->
<div class="bSideBar">
<div class="innerwrap">
<script type="text/javascript">
AC_FL_RunContent( 'width','200','height','250','id','mp3player','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','src','mp3player','name','mp3player','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mp3player' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="250" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="200" height="250" name="mp3player"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
The calendar starts right here...........
And I changed the size consistantly across it. This is what fits in the sidebar best. Thanks for everyone that helped. here's a link if you want to see the final http://www.ajourneyforyouth.com/blog_page/
14 john Aug 12, 2006 02:17
Re [url=http://www.w3.org/TR/REC-CSS2/syndata.html#length-units]Units of Measure[/URL]
15 carringt Aug 12, 2006 02:20
John wrote:
Re [url=http://www.w3.org/TR/REC-CSS2/syndata.html#length-units]Units of Measure[/URL]
Thanks I need this!
this is a skin question. Please be mindful of where you post. I will move this to the skins forum.