|
| |
|
|
baguion
Posts: 2 Joined: 1/11/2007 Status: offline
|
Weather Channel Javascript - 1/16/2007 20:41:57
I've added the code from the weather channel to place on my website. What can I do to edit the code so that when users click on it, it opens in a new window? Right now it is in an inline frame and when I click on it to let's say get the 10 day forecast, it opens within the frame. Below is the code generated from the Weather Channel: <div id="wx_module_4111">
<a href="http://www.weather.com/weather/local/36066">Prattville, AL (36066) Weather</a>
</div>
<script type="text/javascript">
<!--
// Locations can be edited manually by updating 'wx_locID' below. Please also update
// the location name and link in the above div (wx_module) to reflect any changes made.
var wx_locID = '36066';
// If you are editing locations manually and are adding multiple modules to one page, each
// module must have a unique div id. Please append a unique # to the div above, as well
// as the one referenced just below. If you use the builder to create individual modules
// you will not need to edit these parameters.
var wx_targetDiv = 'wx_module_4111';
// Please do not change the configuration value [wx_config] manually - your module
// will no longer function if you do. If at any time you wish to modify this
// configuration please use the graphical configuration tool found at
// https://registration.weather.com/ursa/wow/step2
var wx_config='SZ=180x150*WX=FH*LNK=SSNL*UNT=F*BGI=sun*MAP=null|null*DN=riverregionsoccerclub.com*TIER=0*PID=1031932474*MD5=3c677e0d7be4fe1e577c9239959a0ee1';
document.write('<script src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></script>');
// -->
</script> Thanks, Nick
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|