Log in

View Full Version : Go Right?



bluewalrus
01-13-2009, 04:11 AM
I just got this code from twitter and I can't get it to display properly (I tried changing the code around so it would validate but it failed to load anything when I changed it). I'm trying to put the box on the bottom right. I tried Aligning right (in the object tag) and floating right (as a div and for the style of object) both knocked the code out of the containing div (no white background and 10-15 pixels below).

The box can be seen here: http://www.travelinchucks.com/

This is the code twitter gave me:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="FlashVars" value="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
<embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
</object>

Thanks.

Snookerman
01-13-2009, 06:48 AM
Take a look at this tutorial, it might be helpful:
http://css-tricks.com/video-screencasts/19-designing-a-unique-page-for-twitter-updates/ (http://css-tricks.com/video-screencasts/19-designing-a-unique-page-for-twitter-updates/)

Good luck!

QuinS33
01-17-2009, 07:01 AM
Just add a div around the object with the css in the style attribute like this:


<div style='float: right; clear: right;'>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="FlashVars" value="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
<embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
</object>
</div>

Is that the effect you wanted?

bluewalrus
01-17-2009, 07:45 AM
No, floating...and aligning did not work it cleared it from the content DIV.
I think Snookerman's comment might be correct as usual but I haven't gotten enough free time recently to try...

Sorry Snooker but thanks for the link I'll look at it soon and see if it is what i think it is. I started it just didnt have time for whole thing when i did.