TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 153
  • Total: 153

Would like to make this news feed fit a block or look nice on our site

Started by ApplianceJunk, November 02, 2007, 11:50:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ApplianceJunk

I would like to run this appliance news feed on our site.

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

jacortina

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.

Ianedres

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???

This website is proudly hosted on Crocweb Cloud Website Hosting.