13 January 2010

Sites for Problem Javascript

- Create a Site if necessary. -- Sign-in to your Google account. -- http://sites.google.com/ -- Create site. - Create the javascript file and give it a name (mediaplex-test.js). - Copy the code into the file. Do not include the <script></script> wrapper or the <noscript> code. The file should start with: mpt = new Date(); and end with: + "\" alt=\"Click Here\" border=\"0\"></a>" ); } - Sign-in to Sites. - Click + Create Page (top right.) - Click File Cabinet - Add Name: mediaplex-javascript - Select a level (top works fine.) - Create Page (button.) - The File Cabinet will be created and you will be in it. - Click + Add File button. - Select and upload the .js file. - Right-click and copy Download link. - Delete everything after .js, so you have something like: http://sites.google.com/site/spareguy/mediaplex-javascript/mediaplex-test.js - In the blog, add a new Html/Javascript gadget in the desired location. - Title is not needed. - The content is the javascript file + the <noscript> code: <script src="http://sites.google.com/site/spareguy/mediaplex-javascript/mediaplex-test.js" type="text/javascript"></script> <noscript> <a href="http://altfarm.mediaplex.com/ad/ck/8975-64333-28908-1"> <img border="0" src="http://altfarm.mediaplex.com/ad/bn/8975-64333-28908-1" alt="Click Here"/> </a> </noscript> - Save the gadget and view the blog.

0 comments: