So I just went to addpoll.com and got myself a new poll which I want to add on my site: Well now the problem is I want to know how to add the poll to the left of the search box on my site[in screenshot] like this: So how do i do it? Any help is appreciated
Try this: <p style="float:left;padding:5px 5px 5px 5px"> <!-- addpoll.com flash poll --><script type="text/javascript" src="http://www.addpoll.com/js/swfobject.js"></script> <div id="write_flash"><embed width="300" height="300" flashvars="questionId=38936" quality="high" name="flashpolls" id="flashpolls" style="" src="http://www.addpoll.com/flashPoll.swf" type="application/x-shockwave-flash"/></div> <script type="text/javascript"> var so = new SWFObject("http://www.addpoll.com/flashPoll.swf", "flashpolls", "300", "300", "9"); so.addVariable("questionId", "38936"); so.write("write_flash"); </script> <!-- /addpoll.com flash poll --> </p> Code (markup): Then change the padding to the desired position. From left to right, the padding is top, right, bottom, left.
Uhh tried that, doesnt work as it pushed the rest of the content downwards..I think it needs a new <div> to be created with the required position of the box? CSS? Thanks for trying
try absolute positioning <div style="width: 300px; position: absolute;top:300px;left:50%;margin-left:-400px;"> <!-- addpoll.com flash poll --><script type="text/javascript" src="http://www.addpoll.com/js/swfobject.js"></script> <div id="write_flash"><embed flashvars="questionId=38936" quality="high" name="flashpolls" id="flashpolls" style="" src="http://www.addpoll.com/flashPoll.swf" type="application/x-shockwave-flash" width="300" height="300"></div> <script type="text/javascript"> var so = new SWFObject("http://www.addpoll.com/flashPoll.swf", "flashpolls", "300", "300", "9"); so.addVariable("questionId", "38936"); so.write("write_flash"); </script> <!-- /addpoll.com flash poll --> </div> HTML: adjust top:300px and margin-left:-400px; to position
Thanks man! +Rep Added to both SearchBliss and Spawny Depending on the poll results I might change the template,I was wondering if you would be able to code the template to work with the script? I will be making it very simple with just the search box in the page and a few links..how much do you think it would cost to get it coded? Thanks again