Anonymní profil I\\\'mNub – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Anonymní profil I\\\'mNub – Programujte.comAnonymní profil I\\\'mNub – Programujte.com

 

Příspěvky odeslané z IP adresy 85.135.245.–

I'mNub
JavaScript, AJAX, jQuery › JS - zložité menu?
24. 12. 2008   #92630

tú komplikaci vidím už teďka...ako tie jednoduché príklady chápem...ale čím ďalej tým horšie...JS som nikdy nemal rád...

I'mNub
JavaScript, AJAX, jQuery › JS - zložité menu?
24. 12. 2008   #92628

takže predsa to NEBUDE tých 10-15 riadkov...ok...ale s tým jQuery potrebujem hlp...lebo mám v tom TROCHU chaos

I\\\\\\\\\\\\\\\'mNub
JavaScript, AJAX, jQuery › JS - zložité menu?
24. 12. 2008   #92625

ok...ale co teraz?...poradí mi nekdo?...alebo mám ísť na jpw.cz ?...zive.cz? =D

I\\\'mNub
JavaScript, AJAX, jQuery › JS - zložité menu?
24. 12. 2008   #92622

pretože ešte s ním skoro nič nwm =D

I'mNub
JavaScript, AJAX, jQuery › JS - zložité menu?
24. 12. 2008   #92604

už som tu zase!...tentokrát nwm kde a ako pokračovať...kod: (126 riadkov)



/*
*JavaScript menu (v. 1.0)
*/

//(f) mymenu - get id from document and search "MyMenu" Id
function MyMenu(){
if (MyMenu.isSupported())
{
MyMenu.initialize();
var MyMenu = document.getElementById("mymenu");
};
//(f) menuOpt - menu Options (Activate(Onmouseover)/deactivate(OnMouseOut))
function MenuOpt(){
//=====================//
//Options for menu(1-7)//
//=====================//

var menu1.onactivate = function() { document.getElementById("menu1").className = "hover"; };
var menu1.ondeactivate = function() { document.getElementById("menu1").className = ""; };

var menu2.onactivate = function() { document.getElementById("menu2").className = "hover"; };
var menu2.ondeactivate = function() { document.getElementById("menu2").className = ""; };

var menu3.onactivate = function() { document.getElementById("menu3").className = "hover"; };
var menu3.ondeactivate = function() { document.getElementById("menu3").className = ""; };

var menu4.onactivate = function() { document.getElementById("menu4").className = "hover"; };
var menu4.ondeactivate = function() { document.getElementById("menu4").className = ""; };

var menu5.onactivate = function() { document.getElementById("menu5").className = "hover"; };
var menu5.ondeactivate = function() { document.getElementById("menu5").className = ""; };

var menu6.onactivate = function() { document.getElementById("menu6").className = "hover"; };
var menu6.ondeactivate = function() { document.getElementById("menu6").className = ""; };

var menu7.onactivate = function() { document.getElementById("menu7").className = "hover"; };
var menu7.ondeactivate = function() { document.getElementById("menu7").className = ""; };

};
};

//Menu Settings (CSS & HTML)

var MyMenu.WaitTime = 10000; // time for waiting if will be used OnMouseOver and "Stand By"
var MyMenu.HideTime = 550; // time for waiting if will be used OnMouseOut
var MyMenu.SlideTime = 1200; // time for waiting if will be used OnMouseOut and "Stand By"
var MyMenu.ShadowColr ="#666666"; // color of menus shadow
var MyMenu.ShadowOfft = 2; // Shadow Offset
var MyMenu.ShadowSize = 3; // Shadow size under menu
var MyMenu.ShadowPng ="IMG/shadow.png";// Image what will be used for shadow
var MyMenu.BgColor ="#444444"; // Backgroud color will be used if image doesn't exist
var MyMenu.height = 450px; // Height of menu
var MyMenu.width = 25px; // width of menu
//===============================================
//---------JavaScript Internal properities-------
//===============================================

var MyMenu.reference = {topLeft:1,topRight:2,bottomLeft:3,bottomRight:4};
var MyMenu.direction = {down:1,right:2};
var MyMenu.registry = [];
var MyMenu._maxZ = 100;

//==================================================================================================
//----------------------------------Static methods for explorers------------------------------------
//==================================================================================================
// supporting win ie5+, mac ie5.1+ and gecko >= mozilla 1.0
var NavName = navigator.appName;
var Platform = navigator.platform;
var UsrAgent = navigator.userAgent;
var nan = false;

//============================================
//--------Chceck Explorers--------------------
//============================================

if (UsrAgent.indexOf("Gecko") > -1 && navigator.productSub >= 20020605) nan = true; // gecko >= moz 1.0
else if (NavName == "Microsoft Internet Explorer") {
if (document.getElementById) { // ie5.1+ mac,win
if (Platform.indexOf("mac") == 0) {
nan = /msie (\d(.\d*)?)/.test(UsrAgent) && Number(RegExp.$1) >= 5.1;
}
else nan = true;
}
}

return nan;
}
//
// call this in onload once menus have been created
//
MyMenu.initialize = function() {
for (var i = 0, menu = null; menu = this.registry[i]; i++) {
menu.initialize();
}
};
//
// call this in document body to write out menu html
//

MyMenu.renderAll = function() {
var MxHtml = [];
for (var i = 0, menu = null; menu = this.registry[i]; i++) {
MxHtml[i] = menu.toString();
}
document.write(aMenuHtml.join(""));
};
function ShowMyMenu(){

}

//=============================================================
//------------------Make Interval set no.1---------------------
//=============================================================

//var MyMenu.WaitTime = 10000; // time for waiting if will be used OnMouseOver and "Stand By"
//var MyMenu.HideTime = 550; // time for waiting if will be used OnMouseOut
//var MyMenu.SlideTime = 1200; // time for waiting if will be used OnMouseOut and "Stand By"


function firstInterval(){
var ButtonInterval;
var Button = document.getElementById("button1").onclick;
var Button = setInterval("showMyMenu()",750);
var Ende = clearTimeout("hideMyMenu()");
if (Button){

};
};

len sa chcem opýtať,či to robím dobre/kadiaľ by som sa mal uberať a čo urobiť...

 

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý