How can i do this code

Closed
kabo - Mar 17, 2008 at 11:23 AM
crazy_devil Posts 124 Registration date Wednesday February 20, 2008 Status Member Last seen February 6, 2009 - Jul 31, 2008 at 02:17 PM
Hello,
everybody

i have javescript code look to code

<SCRIPT language=JavaScript> 
<!-- 
function calcHeighta() 
{ 
	var the_height1=document.getElementById('the_iframe1').contentWindow.document.body.scrollHeight;//find the height of the internal page 
	document.getElementById('the_iframe1').style.height=the_height1;//change the height of the iframe 
} 
function MM_preloadImages() { //v3.0 
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 
 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 
 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
} 
//--> 
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function load_DoFSCommand(command, args) {
  var loadObj = InternetExplorer ? load : document.load;
  //
  // Place your code here...
  //
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub load_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call load_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
//-->

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function setHome()
{
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage('http://www.all4arab.6te.net');
}
</SCRIPT>


this code open any html into the friest page and it not have scroll even if big supject it open into page u can see it in this web site https://suwaidan.com/ this arabic site but it have this scrip and u can see what this code doing in website
i wanna put it in to my website and when puting it not working with me i don't know why it not work can anyone hellp me and tell me what can i do with this code
thank you

3 responses

crazy_devil Posts 124 Registration date Wednesday February 20, 2008 Status Member Last seen February 6, 2009 20
Jun 23, 2008 at 10:19 AM
wow!!unfortunately i can't give you an answer it's quite complicated... mmm
0
percy8 Posts 125 Registration date Wednesday February 20, 2008 Status Member Last seen February 5, 2009 47
Jul 27, 2008 at 07:02 AM
firstly i dont even know what is its use,,,sorry dear
0
crazy_devil Posts 124 Registration date Wednesday February 20, 2008 Status Member Last seen February 6, 2009 20
Jul 31, 2008 at 02:17 PM
hi kabo,,
absolutely no idea about this sorry;-(
0