PageSourceSearch

http://kulin.mcse.hu/includes/CsillagaszatShare/js/CsShare.js

js mcse.hu collected 2026-10-02 11:33:24 UTC 4,776 bytes, 111 lines download raw bytes

1// JavaScript Document
2function bookmark(url, description) {
3
4netscape="Elõször nyomjon OK-t majd CTRL+D -t, hogy felvegye a könyvjelzõk közé az oldalt."
5
6	if (navigator.appName=='Microsoft Internet Explorer') {	
7		window.external.AddFavorite(url, description);	
8	} else if (navigator.appName=='Netscape') {	
9		alert(netscape);	
10	}
11
12}
13
14function fix_mail( a ) { a.href = a.href.replace( /NEMSP_AM./g, "" ); return true; }
15
16function stat_mail( a, b )
17{
18	if ( b ) { window.status = a.href.replace( /NEMSP_AM./g, "" ); }
19	else { window.status = ""; }
20}
21
22
23//** Tab Content script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
24//** http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
25//** Last updated: Nov 8th, 06
26
27var enabletabpersistence=0 //enable tab persistence via session only cookies, so selected tab is remembered?
28
29////NO NEED TO EDIT BELOW////////////////////////
30var tabcontentIDs=new Object()
31
32function expandcontent(linkobj){
33var ulid=linkobj.parentNode.parentNode.id //id of UL element
34var ullist=document.getElementById(ulid).getElementsByTagName("li") //get list of LIs corresponding to the tab contents
35for (var i=0; i<ullist.length; i++){
36ullist[i].className=""  //deselect all tabs
37if (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)
38document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents
39}
40linkobj.parentNode.className="selected"  //highlight currently clicked on tab
41document.getElementById(linkobj.getAttribute("rel")).style.display="block" //expand corresponding tab content
42saveselectedtabcontentid(ulid, linkobj.getAttribute("rel"))
43}
44
45function expandtab(tabcontentid, tabnumber){ //interface for selecting a tab (plus expand corresponding content)
46var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
47if (thetab.getAttribute("rel"))
48expandcontent(thetab)
49}
50
51function savetabcontentids(ulid, relattribute){// save ids of tab content divs
52if (typeof tabcontentIDs[ulid]=="undefined") //if this array doesn't exist yet
53tabcontentIDs[ulid]=new Array()
54tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute
55}
56
57function saveselectedtabcontentid(ulid, selectedtabid){ //set id of clicked on tab as selected tab id & enter into cookie
58if (enabletabpersistence==1) //if persistence feature turned on
59setCookie(ulid, selectedtabid)
60}
61
62function getullistlinkbyId(ulid, tabcontentid){ //returns a tab link based on the ID of the associated tab content
63var ullist=document.getElementById(ulid).getElementsByTagName("li")
64for (var i=0; i<ullist.length; i++){
65if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
66return ullist[i].getElementsByTagName("a")[0]
67break
68}
69}
70}
71
72function initializetabcontent(){
73for (var i=0; i<arguments.length; i++){ //loop through passed UL ids
74if (enabletabpersistence==0 && getCookie(arguments[i])!="") //clean up cookie if persist=off
75setCookie(arguments[i], "")
76var clickedontab=getCookie(arguments[i]) //retrieve ID of last clicked on tab from cookie, if any
77var ulobj=document.getElementById(arguments[i])
78var ulist=ulobj.getElementsByTagName("li") //array containing the LI elements within UL
79for (var x=0; x<ulist.length; x++){ //loop through each LI element
80var ulistlink=ulist[x].getElementsByTagName("a")[0]
81if (ulistlink.getAttribute("rel")){
82savetabcontentids(arguments[i], ulistlink.getAttribute("rel")) //save id of each tab content as loop runs
83ulistlink.onclick=function(){
84expandcontent(this)
85return false
86}
87if (ulist[x].className=="selected" && clickedontab=="") //if a tab is set to be selected by default
88expandcontent(ulistlink) //auto load currenly selected tab content
89}
90} //end inner for loop
91if (clickedontab!=""){ //if a tab has been previously clicked on per the cookie value
92var culistlink=getullistlinkbyId(arguments[i], clickedontab)
93if (typeof culistlink!="undefined") //if match found between tabcontent id and rel attribute value
94expandcontent(culistlink) //auto load currenly selected tab content
95else //else if no match found between tabcontent id and rel attribute value (cookie mis-association)
96expandcontent(ulist[0].getElementsByTagName("a")[0]) //just auto load first tab instead
97}
98} //end outer for loop
99}
100
101
102function getCookie(Name){ 
103var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
104if (document.cookie.match(re)) //if cookie found
105return document.cookie.match(re)[0].split("=")[1] //return its value
106return ""
107}
108
109function setCookie(name, value){
110document.cookie = name+"="+value //cookie value is domain wide (path=/)
111}

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.