| */
/* | | */
/* ----------------------------------------------------------------------- */
/* | | */
/* | moveo(i, x, y, a) | */
/* | i -- Element ID to be moved | */
/* | x -- X value (horizontal) to move to | */
/* | y -- Y value (vertical) to move to | */
/* | a -- Number of pixels to move in 1 millisecond | */
/* | | */
/* | fadeo(x) style: WIDTH; VISIBILITY: HIDDEN; | */
/* | FILTER: blendTrans(Duration=?) | */
/* | x -- Element ID to fade up | */
/* | | */
/* | bubblo(x, g) | */
/* | x -- Element ID to show or hide | */
/* | g -- Group name (in quotes) [optional] | */
/* | | */
/* | typeo(x, p) style: VISIBILITY: HIDDEN | */
/* | x -- Element ID to type text to | */
/* | p -- Pause between lettes (200 recomended) | */
/* | | */
/* | switcho(x, t, c) | */
/* | x -- Element ID to put text in | */
/* | t -- The series of text, images or links ex: | */
/* | "Hey,This,Is,Cool" or "edit.gif,sale.gif" | */
/* | c -- The amount of time to wait between cycles | */
/* | | */
/* | scrollo(x) | */
/* | x -- The text to scroll across the bottom | */
/* | | */
/* | isie4(x) | */
/* | x -- The page to go to if the broswer is IE4 | */
/* | | */
/* | profileo(x, t) VCard: valid_attribute | */
/* | x -- The ID of the form | */
/* | t -- The name of your site, ex: "Steve Land" | */
/* | | */
/* | styleo(x, y, z) | */
/* | x = Selector Text (.abc) | */
/* | y = CSS Property (color) | */
/* | z = New Value (optional or returns current) | */
/* | | */
/* | MouseOver mousetext: Text to be shown in status bar | */
/* | newimg: Image to replace existing one | */
/* | tip: A tool tip with HTML | */
/* | | */
/* |PATH xyz = new path(id); -- ID is object to move | */
/* | xyz.addPoint(x, y, s); -- Points to go to | */
/* | s -- Number of pixels / millisecond | */
/* | xyz.Circle(r, s); -- Does a circular path | */
/* | r -- Radius, s -- (see above) | */
/* | xyz.runMe(); -- Runs Path | */
/* ----------------------------------------------------------------------- */
function moveo(i, x, y, a) {
i.isMoving = 1;
yNow = i.style.posTop;
xNow = i.style.posLeft;
var b = a - 1;
if (yNow > (y + b)) {
yNow = yNow - a;
i.style.posTop = yNow;
} else if (yNow < (y - b)) {
yNow = yNow + a;
i.style.posTop = yNow;
} else {
yNow = y;
i.style.posTop = yNow;
}
if (xNow > (x + b)) {
xNow = xNow - a;
i.style.posLeft = xNow;
} else if (xNow < (x - b)) {
xNow = xNow + a;
i.style.posLeft = xNow;
} else {
xNow = x;
i.style.posLeft = xNow;
}
if (yNow == y && xNow == x) {
i.isMoving = 0;
if (i.onMoveo != null) {
i.onMoveo();
}
return;
}
ab1 = window.setTimeout("moveo("+i.id+","+x+","+y+","+a+");", 1);
}
function fadeo(x) {
if (x.filters.blendTrans.status==0) {
x.filters.blendTrans.Apply();
if (x.style.visibility == "hidden" || x.style.visibility == "") {
x.style.visibility = "visible";
} else {
x.style.visibility = "hidden";
}
x.filters.blendTrans.Play();
}
}
document.onmouseover=makeCool;
document.onmouseout=makeNormal;
function makeCool() {
src = event.srcElement;
if (src.tip != null) {
tttext = src.tip
theY = src.offsetTop + src.offsetHeight;
nextSrc = src.offsetParent;
for (i=0; nextSrc.tagName!="BODY"; i++) {
theY = theY + nextSrc.offsetTop;
nextSrc = nextSrc.offsetParent;
}
document.ttip = window.setTimeout("Tool(" + window.event.x + "," + theY + ",'" + tttext + "');", 750);
}
if (src.tagName == "A") {
src.oldColor = src.style.color;
src.style.color = "red";
if (src.mousetext != null) {
intext = src.mousetext;
} else {
intext = src.innerText;
}
window.status = intext;
document.scrollOld = document.scrollGo;
document.scrollGo = 0;
} else if (src.tagName == "IMG") {
onImg = src;
if (onImg.newimg != null) {
onImg.oldSrc = onImg.src;
onImg.src = onImg.newimg;
}
}
}
function makeNormal() {
src = event.srcElement;
if (src.tip != null) {
window.clearTimeout(document.ttip);
if (document.all.ToolTip == null) {
document.body.insertAdjacentHTML('beforeEnd', '');
}
ToolTip.style.visibility = "hidden";
}
if (src.tagName == "A") {
src.style.color = src.oldColor;
window.status = "";
document.scrollGo = document.scrollOld;
} else if (src.tagName == "IMG") {
onImg = src;
if (onImg.newimg != null) {
onImg.src = onImg.oldSrc;
}
}
}
function Tool(x, y, t) {
if (document.all.ToolTip == null) {
document.body.insertAdjacentHTML('beforeEnd', '');
}
ToolTip.style.width = 200;
ToolTip.style.posTop = y;
ToolTip.style.posLeft = x + 10;
ToolTip.innerHTML = "
ししゃもはんの応援団
![]()
ガンバ!ガンバ!