Find Jobs
Hire Freelancers

DHTML popup on remote computer

$30-250 USD

Cancelled
Posted over 15 years ago

$30-250 USD

Paid on delivery
I have a dhtml popup script that i use on remote computer by calling a javascript as <script src="http://www.remote.com/script.js"></script> but not on the same server ([login to view URL]) The problem i get is : when the dhtml popup is loaded, the site who run the script doesn't charge his webpage completly and the webpage come blank with an window explorer error alert like "the website cannot be loaded" ! When i load the script on the same server (myserver), there was no problem ! Below the script i use. I would like to keep the same script but if it need to change it i'am ok... var w3c=([login to view URL])? true: false; var ns4=([login to view URL])?true:false; var ie5=(w3c && [login to view URL])? true : false; var ns6=(w3c && ![login to view URL])? true: false; var d=document; currIDb=null; xoff=0; yoff=0; currRS=null; rsxoff=0; rsyoff=0; oldac=null; newac=null; zdx=1; mx=0; my=0; function preloadBttns(){ var btns=new Array(); btns[2]=new Image(); btns[2].src="http://www.popub.com/close.gif"; btns[3]=new Image(); btns[3].src="http://www.popub.com/resize.gif"; } preloadBttns(); //******* START OF EXPOSED FUNCTIONS. THESE CAN BE USED IN HYPERLINKS. ******* function hidebox(id){ if(w3c){ [login to view URL](id+'_b').style.display='none'; [login to view URL](id+'_s').style.display='none'; }} function showbox(id){ if(w3c){ var bx=[login to view URL](id+'_b'); var sh=[login to view URL](id+'_s'); bx.style.display='block'; sh.style.display='block'; sh.style.zIndex=++zdx; bx.style.zIndex=++zdx; changez(bx); }} function changecontent(id,text){ if(![login to view URL](id+'_b').isExt){ var d=[login to view URL](id+'_c'); if(ns6)d.style.overflow="hidden"; d.innerHTML=text; if(ns6)d.style.overflow="block"; }else [login to view URL](id+'_ifrm').src=text; } //******* END OF EXPOSED FUNCTIONS ******* function minimize(){ if(w3c){ [login to view URL](this.cid+"_b").style.height=(ie5)? '28px':'24px'; [login to view URL](this.cid+"_s").style.height='28px'; [login to view URL](this.cid+"_c").style.display='none'; [login to view URL](this.cid+"_rs").style.display='none'; ns6bugfix(); }} function restore(){ if(w3c){ [login to view URL](this.cid+"_b").style.height=this.h+'px'; [login to view URL](this.cid+"_s").style.height=(ie5)? this.h+'px':this.h+5+'px'; [login to view URL](this.cid+"_c").style.display='block'; [login to view URL](this.cid+"_rs").style.display='block'; ns6bugfix(); }} function ns6bugfix(){ if(ns6)setTimeout('[login to view URL](0,1); [login to view URL](0,-1);', 100); } function trackmouse(evt){ mx=(ie5)?event.clientX+[login to view URL]:[login to view URL]; my=(ie5)?event.clientY+[login to view URL]:[login to view URL]; if(!ns6)movepopup(); if((currIDb!=null)||(currRS!=null))return false; } function movepopup(){ if((currIDb!=null)&&w3c){ var x=mx+xoff; var y=my+yoff; currIDb.style.left=x+'px'; currIDs.style.left=x+8+'px'; currIDb.style.top=y+'px'; currIDs.style.top=y+8+'px'; } if((currRS!=null)&&w3c){ var rx=mx+rsxoff; var ry=my+rsyoff; var c=currRS; d.gEl=[login to view URL]; [login to view URL](c.cid+"_extWA").style.display="block"; c.style.left=[login to view URL](rx,((ie5)?88:92))+'px'; c.style.top=[login to view URL](ry,((ie5)?68:72))+'px'; [login to view URL](c.cid+"_b").style.width=[login to view URL](rx+((ie5)?12:8),100)+'px'; [login to view URL](c.cid+"_b").style.height=[login to view URL](ry+((ie5)?12:8),80)+'px'; [login to view URL](c.cid+"_t").style.width=[login to view URL](rx+((ie5)?4:3),((ns6)?95:92))+'px'; [login to view URL](c.cid+"_btt").style.left=parseInt([login to view URL](c.cid+"_t").[login to view URL])-48+'px'; [login to view URL](c.cid+"_s").style.width=[login to view URL](rx+12,((ie5)?100:104))+'px'; [login to view URL](c.cid+"_s").style.height=[login to view URL](ry+((ie5)?12:13),((ie5)?80:86))+'px'; [login to view URL](c.cid+"_c").style.width=[login to view URL](rx-((ie5)?-5:5),((ie5)?92:87))+'px'; [login to view URL](c.cid+"_c").style.height=[login to view URL](ry-((ie5)?24:28),44)+'px'; [login to view URL](c.cid+"_max").h=parseInt([login to view URL](c.cid+"_b").[login to view URL]); } return false; } function stopRS(){ [login to view URL](this.cid+"_extWA").style.display="none"; currRS=null; } function startRS(evt){ var ex=(ie5)?event.clientX+[login to view URL]:[login to view URL]; var ey=(ie5)?event.clientY+[login to view URL]:[login to view URL]; rsxoff=parseInt([login to view URL])-ex; rsyoff=parseInt([login to view URL])-ey; currRS=this; if(ns6)[login to view URL](this.cid+"_c").style.overflow='hidden'; return false; } function changez(v){ var th=(v!=null)?v:this; if(oldac!=null)[login to view URL](oldac.cid+"_t").style.backgroundColor=[login to view URL]; if(ns6)[login to view URL](th.cid+"_c").style.overflow='auto'; oldac=th; [login to view URL](th.cid+"_t").style.backgroundColor=[login to view URL]; [login to view URL](th.cid+"_s").style.zIndex=++zdx; th.style.zIndex=++zdx; [login to view URL](th.cid+"_rs").style.zIndex=++zdx; } function stopdrag(){ currIDb=null; [login to view URL](this.cid+"_extWA").style.display="none"; ns6bugfix(); } function grab_id(evt){ var ex=(ie5)?event.clientX+[login to view URL]:[login to view URL]; var ey=(ie5)?event.clientY+[login to view URL]:[login to view URL]; xoff=parseInt([login to view URL](this.cid+"_b").[login to view URL])-ex; yoff=parseInt([login to view URL](this.cid+"_b").[login to view URL])-ey; currIDb=[login to view URL](this.cid+"_b"); currIDs=[login to view URL](this.cid+"_s"); [login to view URL](this.cid+"_extWA").style.display="block"; return false; } function subBox(x,y,w,h,bgc,id){ var v=[login to view URL]('div'); [login to view URL]('id',id); v.style.position='absolute'; v.style.left=x+'px'; v.style.top=y+'px'; v.style.width=w+'px'; v.style.height=h+'px'; if(bgc!='')v.style.backgroundColor=bgc; v.style.visibility='visible'; v.style.padding='0px'; return v; } function get_cookie(Name) { var search=Name+"="; var returnvalue=""; if(d.cookie.length>0){ offset=[login to view URL](search); if(offset!=-1){ offset+=[login to view URL]; end=[login to view URL](";",offset); if(end==-1)end=[login to view URL]; returnvalue=unescape([login to view URL](offset,end)); }} return returnvalue; } function popUp(x,y,w,h,cid,text,bgcolor,textcolor,fontstyleset,title,titlecolor,titletextcolor,bordercolor,scrollcolor,shadowcolor,showonstart,isdrag,isresize,oldOK,isExt,popOnce){ var okPopUp=false; if (popOnce){ if (get_cookie(cid)==""){ okPopUp=true; d.cookie=cid+"=yes" }} else okPopUp=true; if(okPopUp){ if(w3c){ w=[login to view URL](w,100); h=[login to view URL](h,80); var rdiv=new subBox(w-((ie5)?12:8),h-((ie5)?12:8),7,7,'',cid+'_rs'); if(isresize){ rdiv.innerHTML='<img src="http://www.popub.com/resize.gif" width="7" height="7">'; rdiv.style.cursor='move'; } var tw=(ie5)?w:w+4; var th=(ie5)?h:h+6; var shadow=new subBox(x+8,y+8,tw,th,shadowcolor,cid+'_s'); if(ie5)shadow.style.filter="alpha(opacity=50)"; else shadow.style.MozOpacity=.5; shadow.style.zIndex=++zdx; var outerdiv=new subBox(x,y,w,h,bordercolor,cid+'_b'); outerdiv.style.borderStyle="outset"; outerdiv.style.borderWidth="2px"; outerdiv.style.borderColor=bordercolor; outerdiv.style.zIndex=++zdx; tw=(ie5)?w-8:w-5; th=(ie5)?h+4:h-4; var titlebar=new subBox(2,2,tw,20,titlecolor,cid+'_t'); titlebar.style.overflow="hidden"; titlebar.style.cursor="default"; var tmp=(isresize)?'<img src="http://www.popub.com/min.gif" id="'+cid+'_min"><img src="http://www.popub.com/max.gif" id="'+cid+'_max">':''; titlebar.innerHTML='<span style="position:absolute; left:3px; top:1px; font:bold 10pt sans-serif; color:'+titletextcolor+'; height:18px; overflow:hidden; clip-height:16px;">'+title+'</span><div id="'+cid+'_btt" style="position:absolute; width:48px; height:16px; left:'+(tw-48)+'px; top:2px; text-align:right">'+tmp+'<img src="http://www.popub.com/close.gif" id="'+cid+'_cls"></div>'; tw=(ie5)?w-7:w-13; var content=new subBox(2,24,tw,h-36,bgcolor,cid+'_c'); content.style.borderColor=bordercolor; content.style.borderWidth="2px"; if(isExt){ content.innerHTML='<iframe id="'+cid+'_ifrm" src="'+text+'" width="100%" height="100%"></iframe>'; content.style.overflow="hidden"; }else{ if(ie5)content.style.scrollbarBaseColor=scrollcolor; content.style.borderStyle="inset"; content.style.overflow="auto"; content.style.padding="0px 2px 0px 4px"; content.innerHTML=text; content.style.font=fontstyleset; content.style.color=textcolor; } var extWA=new subBox(2,24,0,0,'',cid+'_extWA'); extWA.style.display="none"; extWA.style.width='100%'; extWA.style.height='100%'; [login to view URL](titlebar); [login to view URL](content); [login to view URL](extWA); [login to view URL](rdiv); [login to view URL](shadow); [login to view URL](outerdiv); d.gEl=[login to view URL]; if(!showonstart)hidebox(cid); var wB=[login to view URL](cid+'_b'); wB.cid=cid; wB.isExt=(isExt)?true:false; var wT=[login to view URL](cid+'_t'); wT.cid=cid; if(isresize){ var wRS=[login to view URL](cid+'_rs'); wRS.cid=cid; var wMIN=[login to view URL](cid+'_min'); wMIN.cid=cid; var wMAX=[login to view URL](cid+'_max'); wMAX.h=h; wMAX.cid=cid; wMIN.onclick=minimize; wMAX.onclick=restore; wRS.onmousedown=startRS; wRS.onmouseup=stopRS; } var wCLS=[login to view URL](cid+'_cls'); //8 var wEXTWA=[login to view URL](cid+'_extWA'); //11 wB.activecolor=titlecolor; wB.inactivecolor=scrollcolor; if(oldac!=null)[login to view URL](oldac.cid+"_t").style.backgroundColor=[login to view URL]; oldac=wB; wCLS.onclick=new Function("hidebox('"+cid+"');"); wB.onmousedown=function(){ changez(this) } if(isdrag){ wT.onmousedown=grab_id; wT.onmouseup=stopdrag; } }else{ if(oldOK){ var ctr=new Date(); ctr=[login to view URL](); var t=(isExt)?text:''; var posn=(ns4)? 'screenX='+x+',screenY='+y: 'left='+x+',top='+y; var win=[login to view URL](t , "abc"+ctr , "status=no,menubar=no,width="+w+",height="+h+",resizable="+((isresize)?"yes":"no")+",scrollbars=yes,"+posn); if(!isExt){ t='<html><head><title>'+title+'</title></head><body bgcolor="'+bgcolor+'"><font style="font:'+fontstyleset+'; color:'+textcolor+'">'+text+'</font></body></html>'; [login to view URL](t); [login to view URL](); }}}}} if(ns6)setInterval('movepopup()',40); if(w3c){ d.onmousemove=trackmouse; d.onmouseup=new Function("currRS=null"); } new popUp(000 , 000 , 480 , 300 , "Div1" , "<%=URL%>" , "white" , "black" , "10pt sans-serif" , "<font size=1><b><a href='[login to view URL]' target='_new'><font color=white>Popub.com</font></a> sponsorisation de site</b></font> - <a href=<%=URL%> rel=nofollow target=_blank><font color=#FFFFFF>Ouvrir dans une autre fenetre</font></a>" , "#0055E5" , "white" , "#003DDC", "yellow" , "#C8D8FB" , true ,true , true , true , true , false );
Project ID: 321594

About the project

2 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $30 USD for this job
User Avatar
Let me see the website with the error message. view pm for details
$30 USD in 2 days
4.7 (5 reviews)
4.1
4.1
User Avatar
check pm please
$30 USD in 0 day
4.9 (2 reviews)
2.1
2.1

About the client

Flag of FRANCE
Frejus, France
5.0
3
Member since May 8, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.