How Javascript Redirect very slowly?

You need page redirect very slowly Or scrolling the script in your page top to bottom you can use below code :

<script language=”javascript” type=”text/javascript”>
//var end = 1550;
var end = 350;
var tr;
var _flag=0;

function vertsc() {
deelay=10;
del2add=deelay;
entDel=deelay+(deelay)*end+10;
for(i=0; i<end; i++){
doscr(deelay);
deelay+=del2add;
}
tr = setTimeout(‘go()’,entDel);
}

function doscr(deelay){
setTimeout(“top.scrollBy(0,-5)”,deelay);
//setTimeout(“top.scrollBy(0,1)”,deelay);
}

function go(){
clearTimeout(tr);
window.location=”http://www.google.com/german-chat-trading/amazon.php”;
}
onload = vertsc();
</script>

that’s all fine. ЁЯЩВ

How to hide Browser Back and Forward Button?

function disableBackButton()
{
window.history.forward();
}
setTimeout(“disableBackButton()”, 0);

1. And Go to Html Page

2.┬а Put the body onunload section area Below Code :

<body onUnLoad = “disableBackButton();”>

ЁЯЩВ

How After Submit and When back Button Press Form Field Reset ?

function formclear(){
document.getElementById(‘uName’).value = ”;
document.getElementById(‘vorname’).value = ”;
document.getElementById(‘adresse’).value = ”;
document.getElementById(‘plz’).value = ”;
document.getElementById(‘ort’).value = ”;
document.getElementById(‘uEmail’).value = ”;
document.getElementById(‘uEmail2’).value = ”;
document.getElementById(‘agb_digital’).checked = false;
document.getElementById(‘sixLettersCode’).value = ”;
//document.enForm.reset();
}

And But Below Code in Body Section :

<body onLoad=”formclear()” onUnload=”formclear()”>

Light Box

Below Url is very useful light box links :

http://www.huddletogether.com/projects/lightbox2/
http://www.huddletogether.com/projects/lightbox/


Create a Lightbox effect only with CSS – no javascript needed
thanks above url's, J.

Show Hide Javascript

//here you place the ids of every element you want.
var ids=new Array(‘a1′,’a2′,’a3′,’thiscanbeanything’);

function switchid(id){
hideallids();
showdiv(id);
}

function hideallids(){
//loop through the array and hide each element by id
for (var i=0;i<ids.length;i++){
hidediv(ids[i]);
}
}

function hidediv(id) {
//safe function to hide an element with a specified id
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(id).style.display = ‘none’;
}
else {
if (document.layers) { // Netscape 4
document.id.display = ‘none’;
}
else { // IE 4
document.all.id.style.display = ‘none’;
}
}
}

function showdiv(id) {
//safe function to show an element with a specified id

if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(id).style.display = ‘block’;
}
else {
if (document.layers) { // Netscape 4
document.id.display = ‘block’;
}
else { // IE 4
document.all.id.style.display = ‘block’;
}
}
}

<a href=”javascript:switchid(‘a2’);”>show a2</a>

Ref : http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml
——————————————————————————————————

1. Next Option :
—————————————-
function showlayer(layer){
var myLayer = document.getElementById(layer).style.display;
if(myLayer==”none”){
document.getElementById(layer).style.display=”block”;
} else {
document.getElementById(layer).style.display=”none”;
}
}

<a onclick=”javascript:showlayer(‘myName’)” href=”#”>Hide / Show Layer </a>
Ref :http://woork.blogspot.com/2007/10/show-hide-layer-using-simple-javascript.html

<hr />

Option 2 :
——————————————-
http://www.cssnewbie.com/showhide-content-css-javascript/

<hr />
Option 3:
———————————————-

function toggle_visibility(id) {

var e = document.getElementById(id);

if(e.style.display == ‘block’)

e.style.display = ‘none’;

else

e.style.display = ‘block’;

}

<a onclick=”toggle_visibility(‘foo’);” href=”#”>Click here to toggle visibility of element #foo</a>
<div id=”foo”>This is foo</div>
<hr />

┬й 2020 Spirituality