|
Strona Główna
Artykuły
Download
Forum
Linki
Kategorie Newsów | Wrzesień 03 2010 07:55:06 |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15586 Unikalnych wizyt |
|
Do umieszczenia w dowolnym miejscu (wywołanie):
>
Pozycja relatywna r11; zbliżenie kursora
>
Pozycja relatywna r11; kliknięcie myszki
>
Pozycja absolutna r11; zbliżenie kursora
Zawartość skryptu HM_ScriptNS4.js:
/*HM_ScriptNS4.js
* by Peter Belesis. v4.0.13 010713
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
* Originally published and documented at http://www.dhtmlab.com/
* You may use this code only if this entire
* copyright notice appears unchanged and you publicly display
* a link to http://www.dhtmlab.com/.
*
* Contact peterbelesis@yahoo.co.uk for all other uses.
*/
HM_a_Parameters = [
["MenuWidth", 150, "number"],
["FontFamily", "Arial,sans-serif"],
["FontSize", 10, "number"],
["FontBold", false, "boolean"],
["FontItalic", false, "boolean"],
["FontColor", "black"],
["FontColorOver", "white"],
["BGColor", "white"],
["BGColorOver", "black"],
["ItemPadding", 3, "number"],
["BorderWidth", 2, "number"],
["BorderColor", "red"],
["SeparatorSize", 1, "number"],
["ImageSrc", "HM_More_black_right.gif"],
["ImageSrcOver", null],
["ImageSrcLeft", "HM_More_black_left.gif"],
["ImageSrcLeftOver", null],
["ImageSize", 5, "number"],
["ImageHorizSpace", 0, "number"],
["ImageVertSpace", 0, "number"],
["KeepHilite", false, "boolean"],
["ClickStart", false, "boolean"],
["ClickKill", true, "boolean"],
["ChildOverlap", 20, "number"],
["ChildOffset", 10, "number"],
["ChildPerCentOver", null, "number"],
["TopSecondsVisible", .5, "number"],
["ChildSecondsVisible",.3, "number"],
["StatusDisplayBuild", 1, "boolean"],
["StatusDisplayLink", 1, "boolean"],
["UponDisplay", null, "delayed"],
["UponHide", null, "delayed"],
["RightToLeft", false, "boolean"],
["CreateTopOnly", 0, "boolean"],
["ShowLinkCursor", false, "boolean"],
["NSFontOver", true, "boolean"]
]
HM_MenuIDPrefix = "HM_Menu";
HM_ItemIDPrefix = "HM_Item";
HM_ArrayIDPrefix = "HM_Array";
Function.prototype.isFunction = true;
Function.prototype.isString = false;
String.prototype.isFunction = false;
String.prototype.isString = true;
String.prototype.isBoolean = false;
String.prototype.isNumber = false;
Number.prototype.isString = false;
Number.prototype.isFunction = false;
Number.prototype.isBoolean = false;
Number.prototype.isNumber = true;
Boolean.prototype.isString = false;
Boolean.prototype.isFunction = false;
Boolean.prototype.isBoolean = true;
Boolean.prototype.isNumber = false;
Array.prototype.itemValidation = false;
Array.prototype.isArray = true;
function HM_f_AssignParameters(paramarray){
var ParamName = paramarray[0];
var DefaultValue = paramarray[1];
var FullParamName = "HM_" + ParamName;
if (typeof eval("window.HM_PG_" + ParamName) == "undefined") {
if (typeof eval("window.HM_GL_" + ParamName) == "undefined") {
eval(FullParamName + "= DefaultValue");
}
else {
eval(FullParamName + "= HM_GL_" + ParamName);
}
}
else {
eval(FullParamName + "= HM_PG_" + ParamName);
}
paramarray[0] = FullParamName;
paramarray[1] = eval(FullParamName);
}
function HM_f_EvalParameters(valuenew,valueold,valuetype){
var TestString, ParPosition;
if(typeof valuenew == "undefined" || valuenew == null || (valuenew.isString && valuenew.length == 0)){
return valueold;
}
if(valuetype != "delayed"){
while(valuenew.isString) {
ParPosition = valuenew.indexOf("(");
if(ParPosition !=-1) {
TestString = "window." + valuenew.substr(0,ParPosition);
if (typeof eval(TestString) != "undefined" && eval(TestString).isFunction) {
valuenew = eval(valuenew);
}
}
else break
}
}
while(valuenew.isFunction) {valuenew = valuenew()}
switch(valuetype){
case "number":
while (valuenew.isString) {valuenew = eval(valuenew)}
break;
case "boolean":
while (!valuenew.isBoolean) {
valuenew = (valuenew.isNumber) ? valuenew ? true : false : eval(valuenew);
}
break;
}
return valuenew;
}
for (i=0;i | ||