TinyPortal
Development => Support => Topic started by: ApplianceJunk on November 02, 2007, 11:50:48 PM
I would like to run this appliance news feed on our site.
http://www.appliance411.com/news/#code (http://www.appliance411.com/news/#code)
If I put the code in a right or left block it does not fit.
I tried to resize it but could not get it to work.
Can it be made to look nice in a block or you have some other idea how I could show this info on our site and have it look nice?
<!-- Appliance News Headlines -->
<table border=1 align="right">
<tr><td>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.appliance411.com/news/news.js"></SCRIPT>
<NOSCRIPT><IFRAME SRC='http://www.appliance411.com/news/news.htm' MARGINWIDTH=0
MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=2 SCROLLING=AUTO width=220 height=550>
</IFRAME></NOSCRIPT>
</td></tr>
</table>
<!-- End News Headlines -->
Thank you,
AJ
How wide are the side blocks you're trying to fit it in?
That page states clearly: "Feel free to modify the code as you see fit however, keep in mind the the headlines will alway be 200 pixels wide." Without some padding to handle the frame and such, the block would probably have to be around 240 or so wide for it to have a chance.
The Javascript is outputting a table that is 200 pixels wide.
I was able to take that code and change it to fit my column (at 170 pixels) with the IFRAME that it uses.
<IFRAME SRC='http://www.appliance411.com/news/news.htm' MARGINWIDTH=0
MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=2 SCROLLING=NO width=170 height=550>
</IFRAME></noscript>
This code, while it works, has design problems that may or may not adapt to your visitor's browser properly. It simply loads the news.htm file but limits it to the 170 pixel width. The header image that is called by that file is 195 pixels wide, so it will cut off the right side... may be some way to put a DIV tag at the header and use CSS classes to alter the IMG tag width???