Jumat, 03 Desember 2010

Adds Popup Ads on Blog

How to add a Popup Ads on website or blog? It turned out that easy. Follow this instruction.
  1. Go to Design > Edit HTML
  2. Check the Expand Widget Templates.
  3. Copy the following script code, and paste the above code:
  4. <SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>  <!-- var win=null; function NewWindow(mypage,myname,w,h,pos,infocus){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20} settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings); win.focus();} // --> </script>
  5. And then, copy and paste the following script code below <body>
  6. <input type="button" name="B1" value="OK" onClick="NewWindow('http://www.yourURL.com','mypopup','640','480','center','front');">
  7. Change www.yourURL.com with your URL.
  8. Click Save.
  9. Finish and try it.
Good luck!

0 komentar:

Posting Komentar

 

Site Info

Pokjar nGeblog