473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Help pasting in Weather Channel code into FrontPage?

Hi, everyone. I'm having a really difficult time pasting in generated code from the Weather Channel for a weather sticker for my webpage. This was the code sent to me via email:

<!-- cut and paste the below code into your HTML editor --><div id="wx_module_2384"> <a href="http://www.weather.com/weather/local/15904">Johnstown, PA (15904) 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 = '15904'; /* 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_2384'; /* 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=300x250*WX=FWC*LNK=SSNL*UNT=F*BGI=se asonal1*MAP=null|null*DN=www.getitwritesolutions.c om*TIER=0*PID=1024403000*MD5=4cf3598911b9cbfe242fc c4db995732d'; 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><!-- cut and paste the above code into your HTML editor -->

I've tried this about 6 times and have made sure that my code starts and ends with the "script" tag, but I can't get it to work. I'm frustrated. Can anyone just help me to get the "important stuff" out of this code to I can insert this? It looks like there's a whole lot of additional text "notes" in here I don't really need, as well.

I appreciate any and all help...

Your frustrated newbie,
Dawn
Jan 21 '07 #1
3 3802
acoder
16,027 Expert Mod 8TB
[HTML]<!-- cut and paste the below code into your HTML editor -->
<div id="wx_module_2384">
<a href="http://www.weather.com/weather/local/15904">Johnstown, PA (15904) 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 = '15904';
/* 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_2384';
/* 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=300x250*WX=FWC*LNK=SSNL*UNT=F*BGI=se asonal1*MAP=null|null*DN=www.getitwritesolutions.c om*TIER=0*PID=1024403000*MD5=4cf3598911b9cbfe242fc c4db995732d';
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>
<!-- cut and paste the above code into your HTML editor -->[/HTML]
I've posted your code in HTML tags. Please use code tags, the code is easier to read.
Jan 22 '07 #2
AricC
1,892 Expert 1GB
Can you post the whole pages code?
Jan 22 '07 #3
AricC
1,892 Expert 1GB
Worked correctly for me. It must be a cut and paste error. Make sure you are in code viewer mode find the place you want to put this create 3-5 blank spaces then paste this code.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Test</title>
  5. <style type="text/css">
  6.  
  7.  
  8. </style>
  9. </head>
  10.  
  11. <body>
  12. <!-- cut and paste the below code into your HTML editor -->
  13. <div id="wx_module_2384">
  14. <a href="http://www.weather.com/weather/local/15904">Johnstown, PA (15904) Weather</a></div>
  15. <script type="text/javascript">
  16. /* <!-- */
  17. /* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
  18. /* the location name and link in the above div (wx_module) to reflect any changes made. */
  19. var wx_locID = '15904';
  20. /* If you are editing locations manually and are adding multiple modules to one page, each */
  21. /* module must have a unique div id.  Please append a unique # to the div above, as well */
  22. /* as the one referenced just below.  If you use the builder to create individual modules */
  23. /* you will not need to edit these parameters. */
  24. var wx_targetDiv = 'wx_module_2384';
  25. /* Please do not change the configuration value [wx_config] manually - your module */
  26. /* will no longer function if you do.  If at any time you wish to modify this */
  27. /* configuration please use the graphical configuration tool found at */
  28. /* https://registration.weather.com/ursa/wow/step2 */
  29. var wx_config='SZ=300x250*WX=FWC*LNK=SSNL*UNT=F*BGI=se  asonal1*MAP=null|null*DN=www.getitwritesolutions.c  om*TIER=0*PID=1024403000*MD5=4cf3598911b9cbfe242fc  c4db995732d';   
  30. 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>');
  31. /* --> */
  32. </script>
  33. <!-- cut and paste the above code into your HTML editor -->
  34.  
  35. </body>
  36. </html>
  37.  
Jan 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jeremy Jones | last post by:
is looking for two software developers to develop tests (written in Python) to test our internally developed applications for the cable tier. There is a reference to the job on the Python Job...
18
by: Gr8DaddyG | last post by:
I am trying to paste the following code into the HTLM editor of my webpage: <script...
2
by: MS | last post by:
In my project I want to execute some commands on the remote machine. I am using .Net Remoting to achieve this. My server which is an exe is copied on the remote machine and it receives command from...
2
by: WAYNEL | last post by:
Hi I am trying to re-write some of the example code that Agilent gives for VB to VB.Net. In .Net I keep getting the error 'cannot change the number of dimensions of an array'. I have paste...
4
by: Paul M | last post by:
Larry, i've got an xml file which has multiple cities as the top level item. When i read it in using XMLReader, and define the variables, as below, it finds the correct number of cities in the...
2
by: Arthur Dzhelali | last post by:
I have a two xml files schema is identical. When I read file into dataset and then bind dataset to the form. These are weather files we are getting from weather service. One file has only...
8
by: Mark Odell | last post by:
I've read the FAQ and I still can't see how to get what I want. Here's what I'd like to do: I have a list of register numbers that the CPU's instruction set requires be literal constants, e.g. ...
4
by: Mark Cooney | last post by:
OK this might be long winded by want to show you everything I am doing. Down below is the result I get from an API Call to a website called Betfair. The following is some code I am trying, but...
6
by: Chetanhl | last post by:
Can some1 tell me whats wrong in my code or plz provide your own solution so that i can learn from it.I got this question in a text whos result shows 0.0% accuracy in this code althought getting same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.