//* // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // :filename. /tdh3/shared/js/js_login_readdressImages.js // :author. Doug Thompson // :date. 16:42 2004-07-20 // :purpose. To Ensure the preconditions prior to Iframe component activation. // :behaviour. Includes essential JS and CSS then insert IFRAME which takes control, and calls routines that this placed. // :syntax. // :pattern. text/javascript // :ver. 1.1 // :gen. {D6BE6C25-C038-404f-9E2B-EA3969A7F1FC} // :precond. x // :postcond. This is included in js_login.asp by Sub placeJavascript // :status. x // :docs. // http://msdn.microsoft.com/library/default.asp?url= // :changeHistory. // :change id=0 date="22:18 11/12/2003". Created // :change id=1 date="16:09 2005-05-06". Added nopixboxInfo behaviours // :change id=2 date="22:02 01/05/2006". Added fix to readdressImages() and DefaultImages() using lowsrc to remember what it was. // :change id=3 date="15:02 08/05/2006". change #2 only worked on local PC, too till now to fix that!!! // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //* // PRECONDITIONS var ServerPrefix="http://thedoghouse.org" ServerPrefix =""; // This server. // This is included bootstrap code // what about pulling in src="/tdh3/shared/js/xxx.asp" type code as std preconditions? // as this is used in all the top.htm files on the member section. //----------------------------------------------------------- // 1 - preconditions code ---------------- this would be in the mm.js but dont chance it. function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); } function FP_changeProp(){var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;d.$cpe=new Array();if(o)for(i=2;i") document.writeln("function FP_getObjectByID(id,o){var c,el,els,f,m,n;if(!o)o=document;if(o.getElementById)el=o.getElementById(id);else if(o.layers)c=o.layers;else if(o.all)el=o.all[id];if(el)return el;if(o.id==id||o.name==id)return o;if(o.childNodes)c=o.childNodes;if(c) for(n=0;n") // document.writeln("
T
" +feedbackmessage +"
 close
"); }; // DH_popupFeedbackMessage //----------------------------------------------------------- // 3 // parent.window.execScript('DH_popupFeedbackMessage("Your Logon credentials were incorrect")','JavaScript'); //strLocalhost="photos";strImageSilo="silo" function DH_readdressImages(){var i,pre,imageSilo;pre=/photos/i;imageSilo='silo';for(i=0;i= -1) & (preLowSrc.search(pre)>= -1)) { preSRC=preLowSrc; }; if (preSRC.lastIndexOf("/photos/")>0) { preSRC=preSRC.replace(pre,imageSilo); document.images[i].src=preSRC; }; }; }; // old function readdressImages(){var i,pre,imageSilo;pre=/photos/i;imageSilo='silo';for(i=0; i< document.images.length; i++){document.images[i].src=document.images[i].src.replace(pre,imageSilo);};} //function readdressImages(){var i,pre,imageSilo;pre=/photos/i;imageSilo='silo';for(i=0; i< document.images.length; i++){document.images[i].onclick = "";document.images[i].src=document.images[i].src.replace(pre,imageSilo);};} //----------------------------------------------------------- // 5 // Images will not be readdressed if your subscription has lapsed. var resrc_nopixbox="/tdh3/images/essential/nopixbox.jpg"; var str_en_subscriptionMSG="Your subscription has lapsed or is not valid."; var str_en_PleaseLogonMSG="Please Logon to enable images - click here for more info."; // New Version function ExpireImages(){var i,pre,imageSilo,nopixbox,subscriptionMSG;nopixbox=resrc_nopixbox;subscriptionMSG=str_en_subscriptionMSG;pre=/photos/i;for(i=0;i"); //document.write(""); document.write(""); //----------------------------------------------------------- // 8 - When you click on an image you get this message to explain stuff. function nopixboxInfo(p_oEvent) { var oEvent = p_oEvent ? p_oEvent : event; var oSender = p_oEvent ? oEvent.target : oEvent.srcElement; var win; var FAQ_features = 'alwaysRaised=yes,scrollbars=yes,resizable=yes,width=300,height=500,left=10,top=10,screenX=10,screenY=10'; win = window.open('http://thedoghouse.org/tdh3/faq/nopixbox.asp', 'FAQ', FAQ_features); if(win == null) { alert("Pop-ups disabled - Please enable popup for normal opperation."); window.location='http://thedoghouse.org/tdh3/faq/nopixbox.asp'; }else{ win.focus; } }//nopixboxInfo //----------------------------------------------------------- // n - last entry. //----------------------------------------------------------- // n - last entry. var Membership_Level='' // This is the top of xx.js but seems to get lost // document.write("") document.write(""); // Explain where the pictures have gone and how to get them back //window.setTimeout('DefaultImages()',700); var defaultImages_timeoutID= window.setTimeout('DefaultImages()',700);