PageSourceSearch

http://www.mirage4fs.com/scripts/jumptop.js

js mirage4fs.com collected 2026-10-02 14:10:28 UTC 2,305 bytes, 75 lines download raw bytes

1///////////////////////////////////////////////////////////////////
2//Jump To Top Link Script
3//© Dynamic Drive (www.dynamicdrive.com)
4//For full source code and TOS, visit http://www.dynamicdrive.com/
5///////////////////////////////////////////////////////////////////
6
7//Specify the text to display
8var displayed="<nobr><b>^ Top ^</b></nobr>"
9
10///////////////////////////Do not edit below this line////////////
11
12var logolink='javascript:window.scrollTo(0,0)'
13var ns4=document.layers
14var ie4=document.all
15var ns6=document.getElementById&&!document.all
16
17function regenerate(){
18window.location.reload()
19}
20function regenerate2(){
21if (ns4)
22setTimeout("window.onresize=regenerate",400)
23}
24
25if (ie4||ns6)
26document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>')
27
28function createtext(){ //function for NS4
29staticimage=new Layer(5)
30staticimage.left=-300
31staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')
32staticimage.document.close()
33staticimage.visibility="show"
34regenerate2()
35staticitns()
36}
37
38function staticit(){ //function for IE4/ NS6
39var w2=ns6? pageXOffset+w : document.body.scrollLeft+w
40var h2=ns6? pageYOffset+h : document.body.scrollTop+h
41crosslogo.style.left=w2
42crosslogo.style.top=h2
43}
44
45function staticit2(){ //function for NS4
46staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28
47staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10
48}
49
50function inserttext(){ //function for IE4/ NS6
51if (ie4)
52crosslogo=document.all.logo
53else if (ns6)
54crosslogo=document.getElementById("logo")
55crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
56w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10
57h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10
58crosslogo.style.left=w
59crosslogo.style.top=h
60if (ie4)
61window.onscroll=staticit
62else if (ns6)
63startstatic=setInterval("staticit()",100)
64}
65
66if (ie4||ns6){
67window.onload=inserttext
68window.onresize=new Function("window.location.reload()")
69}
70else if (ns4)
71window.onload=createtext
72
73function staticitns(){ //function for NS4
74startstatic=setInterval("staticit2()",90)
75}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.