Author Topic: Aligning a <script>  (Read 1769 times)

0 Members and 1 Guest are viewing this topic.

Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Aligning a <script>
« on: January 03, 2010, 09:44:50 PM »
I have recently added a <script> to my page that adds the wundermap to my website.  The Script is as follows:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.wunderground.com/google/stationmap.xml&amp;up_loc=peotone&amp;up_zoom=City&amp;up_units=English&amp;synd=open&amp;w=1035&amp;h=330&amp;title=Wunderground+Weather&amp;border=http%3A%2F%2Fwww.gmodules.com%2Fig%2Fimages%2F&amp;output=js"></script>

It displays fine in IE and FireFox but in Safari it throws the script to the right of the page.  I have the script on the page now atwww.peotoneweather.com.  It is toward the bottom of the page.  I have tried alignment tags and even valign="bottom".  Also tried placing it in a table.  Safari just will not display it anywhere but off the page to the right.  Any suggestions would be appreciated!
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Aligning a <script>
« Reply #1 on: January 05, 2010, 12:53:01 PM »
Try placing the script inside a <div> tag. Then in your CSS file (are you using one?) specify the position and size of the <div>.

Offline dasman

  • Forecaster
  • *****
  • Posts: 491
    • Wx Peotone
Re: Aligning a <script>
« Reply #2 on: January 05, 2010, 04:59:58 PM »
I tried that.  For now (to make safari happy) I moved it up the page between two tables and Safari likes it there.  My site will be on line for 1 year on February 2ND.  Prior to then I did not know what HTML, or PHP was.  Now I'm trying to make a specific browser happy!  What a year!  With Safari receiving under 5 % of the requests from my server, it is a natter of learning, and not necessity.
Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Aligning a <script>
« Reply #3 on: January 05, 2010, 05:12:54 PM »
Isn't it fun?  :grin:

 

anything