rschoffstall Posted February 25, 2009 Share Posted February 25, 2009 hi all i am trying to put this java script in a area on my web page i want to put this in the center of the page and about half way downi do know that this srcipt goes in the body of my html page and here is the script and my web address is www.rpsgiftsandcollectibles.com/blues2a.htm<script type="text/javascript" src="swfobject.js"></script> <div id="flashPlayer"> This text will be replaced by the flash music player.</div><script type="text/javascript"> var so = new SWFObject("playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF"); so.addVariable("autoPlay","no") so.addVariable("http://www.rpsgiftsandcollectibles.com/playerMultipleList.swf","playlist.xml") so.write("flashPlayer");</script>has you can see on my web page i have pics on both sides of the page and i want to put this in the middle and half way downany and all help would be a great helping handthanksblues lover Link to comment Share on other sites More sharing options...
justsomeguy Posted February 25, 2009 Share Posted February 25, 2009 Since everything else on the page is absolutely positioned, I guess you have to absolutely position this too. Here's the markup for one of your images in a div:<div Id="image0159" name="image0159" style="position: absolute; left: 760px;top:275px;z-index:3900"><img src="WEBpics/image0159.jpg" style="width:478;height:320;border:5"alt="Smokin Joe Kubek and Bnois King."title="Smokin Joe Kubek and Bnois King."></div>That's telling it to show up at 760 pixels from the left of the screen, and 275 pixels from the top. You'll need to add a style tag to the div you want your Flash player in telling it where to show up. Since everything on the page is absolutely positioned you won't be able to do it any other way with that page. You'll probably need some trial and error with the numbers to get it where you want it. Link to comment Share on other sites More sharing options...
rschoffstall Posted February 25, 2009 Author Share Posted February 25, 2009 Since everything else on the page is absolutely positioned, I guess you have to absolutely position this too. Here's the markup for one of your images in a div:<div Id="image0159" name="image0159" style="position: absolute; left: 760px;top:275px;z-index:3900"><img src="WEBpics/image0159.jpg" style="width:478;height:320;border:5"alt="Smokin Joe Kubek and Bnois King."title="Smokin Joe Kubek and Bnois King."></div>That's telling it to show up at 760 pixels from the left of the screen, and 275 pixels from the top. You'll need to add a style tag to the div you want your Flash player in telling it where to show up. Since everything on the page is absolutely positioned you won't be able to do it any other way with that page. You'll probably need some trial and error with the numbers to get it where you want it.that is fine that is how i got the pics were i want them with trial and error but i do not understand is where i put the code at i have tried at the front of the script and <div id="flashPlayer"> and here at the so.write("flashPlayer") part of the script sorry but i am new to javascript and htmlagain thanks for the help Link to comment Share on other sites More sharing options...
justsomeguy Posted February 25, 2009 Share Posted February 25, 2009 All you need to do is add a style attribute with position info to the div.<div id="flashPlayer" style="..."> Link to comment Share on other sites More sharing options...
rschoffstall Posted February 25, 2009 Author Share Posted February 25, 2009 ok i have tried this and works thank you very muchtake a look www.rpsgiftsandcollectibles.com/blues2a.htmagain thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.