Ignore:
Timestamp:
Oct 26, 2006, 9:11:23 PM (14 years ago)
Author:
Nick Burch
Message:

Make more IE friendly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gpx.npemap.org.uk/index.html

    r185 r186  
    1414                }
    1515        </style>
    16   </head>
    17   <body>
    18 <script src="js/yahoo.js"></script>
    19 <script src="js/dom.js"></script>
    20 <script src="js/event.js"></script>
    21 <script src="js/jsr_class.js"></script>
    22 <script src="js/jscoord-1.1.1.js"></script>
     16        <script src="js/yahoo.js"></script>
     17        <script src="js/dom.js"></script>
     18        <script src="js/event.js"></script>
     19        <script src="js/jsr_class.js"></script>
     20        <script src="js/jscoord-1.1.1.js"></script>
     21
     22        <!-- Fix if screen isn't big enough -->
     23        <script type="text/javascript">
     24                function tweak_widths() {
     25                        var screenWidth = YAHOO.util.Dom.getViewportWidth();
     26                        if(screenWidth > 300 && screenWidth < 1100) {
     27                                var rc = document.getElementById("right-col");
     28                                rc.style.width = "300px";
     29                        }
     30                }
     31        </script>
     32</head>
     33<body onload="tweak_widths()">
    2334<div id="body">
    2435<h1>New Popular Mapping - Map GPX Tracer<sup>beta</sup></h1>
     
    5263
    5364</div>
    54 <div class="right-col">
     65<div class="right-col" id="right-col">
    5566<p>
    5667Click on the map to zoom in and get on with it.
Note: See TracChangeset for help on using the changeset viewer.