Search results for 'FireFox'. 2 post(s) found.
2008/05/03 08:39
IFRAME Auto Resize in IE, FireFox by Javascript
2008/05/03 08:39 in HTML, Javascript

Here's the simple iframe auto-resize example working on IE, and FireFox.
<iframe id='ifrm'
frameborder=0
width=100%
height=450
scrolling=no
src='http://kurapa.com'
></iframe>
<script language='javascript'>
function getDocHeight(doc)
{
var docHt = 0, sh, oh;
if (doc.height)
{
docHt = doc.height;
}
else if (doc.body)
{
if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
if (sh && oh) docHt = Math.max(sh, oh);
}
return docHt;
}
frameborder=0
width=100%
height=450
scrolling=no
src='http://kurapa.com'
></iframe>
<script language='javascript'>
function getDocHeight(doc)
{
var docHt = 0, sh, oh;
if (doc.height)
{
docHt = doc.height;
}
else if (doc.body)
{
if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
if (sh && oh) docHt = Math.max(sh, oh);
}
return docHt;
}
var iframeEl = window.document.getElementById? window.document.getElementById('ifrm'): document.all? document.all['ifrm']: null;
if (docHt != iframeEl.style.height) iframeEl.style.height = docHt + 'px';
}
else
{ // FireFox
var docHt = window.document.getElementById('ifrm').contentDocument.height;
window.document.getElementById('ifrm').style.height = docHt + 'px';
}
}
}
else
{ // FireFox
var docHt = window.document.getElementById('ifrm').contentDocument.height;
window.document.getElementById('ifrm').style.height = docHt + 'px';
}
}
function getRetry()
{
getReSize();
setTimeout('getRetry()',500);
}
getRetry();
</script>
{
getReSize();
setTimeout('getRetry()',500);
}
getRetry();
</script>
Another posts included in "HTML, Javascript"
| Clipboard copy function working (0) | 2008/10/17 |
| How to find the ip address of a client machine from a web application? (0) | 2009/03/21 |
| Simple RSS Reader based on javascript (0) | 2009/07/01 |
| How to include Javascript from anonther ? (0) | 2008/01/25 |
| Javascript based Browser Sniffing (0) | 2008/01/25 |
| Javascript based Regular Expression Tester (0) | 2008/01/15 |
| Two useful string functions - substr & substring (0) | 2008/01/15 |
| Is there URLEncode function in Javascript ? (0) | 2007/10/11 |
Trackback : Cannot send a trackbact to this post.
2008/02/14 08:19
How to elimiate the "Restore Previous Session" dialog when FireFox 2.0 starts
2008/02/14 08:19 in MS Windows Tweak

If you want to get rid of the "Restore Previous Session" dialog and simply start a new session everytime, you need to add one value in your FireFox config file.
1) put below strings in URL field
about:config
2) set browser.sessionstore.enabled -> false
3) set browser.sessionstore.resume_session_once -> "true"
Restart FireFox, and your done!
Another posts included in "MS Windows Tweak"
| Remote Desktop not work after SP3 installation ? (0) | 2008/12/15 |
| How to make application speed faster (0) | 2007/12/06 |
| Changing ANY user password without having to know the existing password (0) | 2007/12/06 |
| Windows XP Internet Connection Sharing: Port Forwarding Difficulties (5) | 2007/12/06 |
| Firefox Web Tweaking (0) | 2007/09/03 |
| Editing your Web browser's settings for faster loading of pages (0) | 2007/09/03 |
Trackback : Cannot send a trackbact to this post.
-
Subject 1930 simmons furniture.
2009/01/06 07:35
Simmons baby furniture. Simmons juvenile furniture. 1930 simmons furniture.
-
Subject Directory forum gambling href online site wiki.
2009/02/19 16:31
Online gambling forum. Directory forum gambling href online site wiki.
-
Subject Secure sockets layer ssl and web hosting.
2009/02/21 19:14
Secure sockets layer ssl and web hosting. Ssl web hosting.
-
Subject different money making ideas
2010/01/29 06:01
moneyideas
-
Subject different money making ideas
2010/01/29 14:39
moneyideas
-
Subject different money making ideas
2010/01/31 16:43
moneyideas
Prev

Rss Feed