jonijs Posted May 6, 2008 Report Share Posted May 6, 2008 (edited) Es esmu ielicis forumu , lai atveras webā, kā gign, bet ir rpoblēma ! tas skripts kas atljauj ielikt forumu webā izveido tabulu , bet tās tabulas augstums ir nemainīgs! <iframe "**************" width="803" height="600" frameborder="0" scrolling="NO" vspace="0" hspace="0" marginwidth="0" marginheight="0" src="****************"></iframe></p> scrolling="NO" ja es šeit ielieku YES tad tas izveido tā saucamo rullīti , bet man tas neder ! Es gribētu lai tabulas augstums mainas automātiski pēc pieprasītā augstuma! ā un ja es nomainu vienkārši height="600" uz ļoti lielu skaitli webā izskatas ļoti nesmuki ! Edited May 6, 2008 by jonijs Link to comment Share on other sites More sharing options...
Kiwix Posted May 6, 2008 Report Share Posted May 6, 2008 Meklē google.lv "dynamic iframe script" Link to comment Share on other sites More sharing options...
jonijs Posted May 6, 2008 Author Report Share Posted May 6, 2008 (edited) Es atradu šitādu skript ! es vinju ielieku manā lapā kur ir atver forumu ! <script type="text/javascript"> /*********************************************** * IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com) * Visit DynamicDrive.com for hundreds of original DHTML scripts * This notice must stay intact for legal use ***********************************************/ //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height: //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none: var iframeids=["myframe"] //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended): var iframehide="yes" var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers function resizeCaller() { var dyniframe=new Array() for (i=0; i<iframeids.length; i++){ if (document.getElementById) resizeIframe(iframeids[i]) //reveal iframe for lower end browsers? (see var above): if ((document.all || document.getElementById) && iframehide=="no"){ var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) tempobj.style.display="block" } } } function resizeIframe(frameid){ var currentfr=document.getElementById(frameid) if (currentfr && !window.opera){ currentfr.style.display="block" if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax currentfr.height = currentfr.Document.body.scrollHeight; if (currentfr.addEventListener) currentfr.addEventListener("load", readjustIframe, false) else if (currentfr.attachEvent){ currentfr.detachEvent("onload", readjustIframe) // Bug fix line currentfr.attachEvent("onload", readjustIframe) } } } function readjustIframe(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) resizeIframe(iframeroot.id); } function loadintoIframe(iframeid, url){ if (document.getElementById) document.getElementById(iframeid).src=url } if (window.addEventListener) window.addEventListener("load", resizeCaller, false) else if (window.attachEvent) window.attachEvent("onload", resizeCaller) else window.onload=resizeCaller </script> tad šito lieku tajā lapas vietā kur gribu lai atver forum <iframe id="myframe" src="te mana foruma adrese" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe> Gribēju zināt vai viss ir pareizi izdarīts ??? Man šitas nestrādā! kas šeit par vainu ja zinat kādu strādājošu skript lūdzu iedodat vai linku kur es to varētu redzēt ! Edited May 6, 2008 by jonijs Link to comment Share on other sites More sharing options...
NeoX Posted May 9, 2008 Report Share Posted May 9, 2008 Kura vieta sitais skript vsp jabaz ? Link to comment Share on other sites More sharing options...
*jancis38* Posted May 9, 2008 Report Share Posted May 9, 2008 Turpat kur tu liec iframe kodu. Link to comment Share on other sites More sharing options...
NeoX Posted May 9, 2008 Report Share Posted May 9, 2008 Un kura vieta tas jaliek ? Neesmu nekad neko tml darījis! Link to comment Share on other sites More sharing options...
*jancis38* Posted May 9, 2008 Report Share Posted May 9, 2008 (edited) Izveido failu forums.php kurā ievadi sekojošo: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>..:: Forums ::..</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> /*********************************************** * IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com) * Visit DynamicDrive.com for hundreds of original DHTML scripts * This notice must stay intact for legal use ***********************************************/ //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height: //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none: var iframeids=["myframe"] //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended): var iframehide="yes" var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers function resizeCaller() { var dyniframe=new Array() for (i=0; i<iframeids.length; i++){ if (document.getElementById) resizeIframe(iframeids[i]) //reveal iframe for lower end browsers? (see var above): if ((document.all || document.getElementById) && iframehide=="no"){ var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) tempobj.style.display="block" } } } function resizeIframe(frameid){ var currentfr=document.getElementById(frameid) if (currentfr && !window.opera){ currentfr.style.display="block" if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax currentfr.height = currentfr.Document.body.scrollHeight; if (currentfr.addEventListener) currentfr.addEventListener("load", readjustIframe, false) else if (currentfr.attachEvent){ currentfr.detachEvent("onload", readjustIframe) // Bug fix line currentfr.attachEvent("onload", readjustIframe) } } } function readjustIframe(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) resizeIframe(iframeroot.id); } function loadintoIframe(iframeid, url){ if (document.getElementById) document.getElementById(iframeid).src=url } if (window.addEventListener) window.addEventListener("load", resizeCaller, false) else if (window.attachEvent) window.attachEvent("onload", resizeCaller) else window.onload=resizeCaller </script> </head> <body> Šiten aiziet lapas headeris... <iframe id="myframe" src="http://mana.lapa.lv/forum/" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe> Šiten aiziet lapas bottom's... </body> </html> Edited May 9, 2008 by *jancis38* Link to comment Share on other sites More sharing options...
YOSHI Posted May 9, 2008 Report Share Posted May 9, 2008 forums.php tur wiss ir ~~ Link to comment Share on other sites More sharing options...
*jancis38* Posted May 9, 2008 Report Share Posted May 9, 2008 Ko? Link to comment Share on other sites More sharing options...
NeoX Posted May 9, 2008 Report Share Posted May 9, 2008 man rada 6adu Link to comment Share on other sites More sharing options...
lazda2 Posted May 9, 2008 Report Share Posted May 9, 2008 Skatos samurajs nelau visu ielikt jums mutē!! Varbūt pats spēsi tikt galā!! function init_document_iframe() { if (document.getElementById('document_frame') != null) { document.getElementById('document_frame').onload = function() { var frameDoc = null; var frame = this; if (frame.contentDocument) { frameDoc = frame.contentDocument; } else { frameDoc = document.frames['document_frame'].document; } frame.style.height = (frameDoc.body.offsetHeight + 50) + 'px'; } } } Link to comment Share on other sites More sharing options...
jonijs Posted May 10, 2008 Author Report Share Posted May 10, 2008 forums.php kurā ievadi sekojošo: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>..:: Forums ::..</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> /*********************************************** * IFrame SSI script II- ? Dynamic Drive DHTML code library (http://www.dynamicdrive.com) * Visit DynamicDrive.com for hundreds of original DHTML scripts * This notice must stay intact for legal use ***********************************************/ //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height: //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none: var iframeids=["myframe"] //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended): var iframehide="yes" var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers function resizeCaller() { var dyniframe=new Array() for (i=0; i<iframeids.length; i++){ if (document.getElementById) resizeIframe(iframeids[i]) //reveal iframe for lower end browsers? (see var above): if ((document.all || document.getElementById) && iframehide=="no"){ var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) tempobj.style.display="block" } } } function resizeIframe(frameid){ var currentfr=document.getElementById(frameid) if (currentfr && !window.opera){ currentfr.style.display="block" if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax currentfr.height = currentfr.Document.body.scrollHeight; if (currentfr.addEventListener) currentfr.addEventListener("load", readjustIframe, false) else if (currentfr.attachEvent){ currentfr.detachEvent("onload", readjustIframe) // Bug fix line currentfr.attachEvent("onload", readjustIframe) } } } function readjustIframe(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) resizeIframe(iframeroot.id); } function loadintoIframe(iframeid, url){ if (document.getElementById) document.getElementById(iframeid).src=url } if (window.addEventListener) window.addEventListener("load", resizeCaller, false) else if (window.attachEvent) window.attachEvent("onload", resizeCaller) else window.onload=resizeCaller </script> </head> <body> Šiten aiziet lapas headeris... <iframe id="myframe" src="http://mana.lapa.lv/forum/" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe> Šiten aiziet lapas bottom's... </body> </html> Lieels paldiessss tev, viss ideāli strādā ! topic var close Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now