Bài đăng

Đang hiển thị bài đăng từ tháng 9 28, 2008

Open window, Resize it after 1 second, then Close it after 6 seconds

on (release) { getURL ("javascript:NewWindow=window.open('ShowPopup.php','newWin','width=400,height=300,left=0,top=0, toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); setTimeout('NewWindow.resizeTo(500,500)',1000); setTimeout('NewWindow.close()',6000); void(0);"); } http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=1 http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=2 http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=3 http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=4 http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=5

using popup in flash

on (release) { getURL ("javascript:NewWindow=window.open('ShowPopup.php','newWin','width=400,height=300,left=0,top=0, toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);"); } The first part (Green) tells the browser that we will be sending it some JavaScript code. Then we define a new window object called 'NewWindow' This name is important because it will allow us to reference the popup window at later times. This does not have to have the name 'NewWindow' it can be anything as long as you keep it consistent. Then we use the window.open JavaScript command to open up a new window. This function contains a couple of options. The first is the target URL to the Page that you want to open inside the pop-up window. In this case that's 'ShowPopup.php'. The next option is to give the window a Name, the name of the window in this example will be 'newWin'. Then we hav

change URL and Click Tracking with OpenX

change URL and Click Tracking with OpenX In actionscript: active_btn.onRelease = function(){ bannerid:Number = 6; // ma banner zoneid:Number = 9; // ma zone numRand = Math.floor(Math.random() * (999999999 - 999999)) + 999999; // so ngau nhien tranh noi dung bi cache _root.clickTAG = "http://222.255.237.117/Ads/www/delivery/ck.php?oaparams=2__bannerid="+bannerid+"__zoneid="+zoneid +"__cb="+numRand+"__maxdest="; switch (mediaFile) { case "http://222.255.237.118/ov_tn_vinatrack.flv": _root.clickCus = "http://www.Vinatrack.com/"; break ; case "http://222.255.237.118/ov_tn_acecook.flv": _root.clickCus = "http://www.acecookvietnam.com/"; break ; default: //_root.clickTAG = null; break; } getURL(_root.clickTAG+_root.clickCus,"_ovtech"); }