does anyone know the code that will make page transitions work in firefox as well as IE, (CSS)
code i have atm which works in IE not firefox
<meta>
thanks in advance
css code for page transition
Unfortunately you need to select "disable HTML in this post" for the code to show up.
And page transitions are a MSIE only feature. Not only that, they're tacky, bloated, put people off visiting your site, and don't validate
css code for page transition
<meta http-equiv="Page-Enter" content="blendtrans(duration=2.0)">
ye i know most of them look quite bad, but the dissolve one looks nice
iv found code for when you exit the page, but i need one for when the page opens
var xmlhttp;
var timerId = 0;
var op = 1;
function getPageFx()
{
url = "/transpage2.html";
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
xmlhttp.onreadystatechange=xmlhttpChange
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
}
else
getPageIE();
}
function xmlhttpChange()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// if "OK"
if (xmlhttp.status==200)
{
if(timerId!=0)
window.clearTimeout(timerId);
timerId = window.setTimeout("trans();",100);
}
else
{
alert(xmlhttp.status)
}
}
}
function trans(){
op -= .1;
document.body.style.opacity = op;
if(op<.4){ window.clearTimeout(timerId); timerId = 0; document.body.style.opacity = 1; document.open(); document.write(xmlhttp.responseText); document.close(); return; } timerId = window.setTimeout("trans();",100); } function getPageIE(){ window.location.href = "transpage2.html"; }
css code for page transition
Um this is a CSS forum ,
Moved to 'Off Topic'
Hugo.
css code for page transition
As I said in my original post:
And page transitions are a MSIE only feature. Not only that, they're tacky, bloated, put people off visiting your site, and don't validate
Have I not put you off using them yet? Or do you want to give your pages that retro, 1990s feel?