mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 06:39:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@256 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
de279750ba
commit
b675f26ac4
10 changed files with 151 additions and 5 deletions
|
|
@ -41,6 +41,14 @@ var clrOrg; // A color before the change
|
|||
var TimerID; // Timer ID
|
||||
|
||||
|
||||
if(xIE4Up) {
|
||||
xAddEventListener(document, 'mouseover', doRainbowAnchor);
|
||||
xAddEventListener(document, 'mouseout', stopRainbowAnchor);
|
||||
} else {
|
||||
xAddEventListener(document, 'mouseover', Mozilla_doRainbowAnchor);
|
||||
xAddEventListener(document, 'mouseout', Mozilla_stopRainbowAnchor);
|
||||
}
|
||||
/*
|
||||
if (document.all) {
|
||||
document.onmouseover = doRainbowAnchor;
|
||||
document.onmouseout = stopRainbowAnchor;
|
||||
|
|
@ -50,6 +58,7 @@ else if (document.getElementById) {
|
|||
document.onmouseover = Mozilla_doRainbowAnchor;
|
||||
document.onmouseout = Mozilla_stopRainbowAnchor;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//=============================================================================
|
||||
|
|
@ -128,14 +137,15 @@ function stopRainbowAnchor()
|
|||
// Mozilla_doRainbowAnchor(for Netscape6 and Mozilla browser)
|
||||
// This function begins to change a color. (of a anchor, automatically)
|
||||
//=============================================================================
|
||||
function Mozilla_doRainbowAnchor(e)
|
||||
function Mozilla_doRainbowAnchor(evt)
|
||||
{
|
||||
var e = new xEvent(evt);
|
||||
if (act == 0) {
|
||||
obj = e.target;
|
||||
while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
|
||||
obj = obj.parentNode;
|
||||
if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
|
||||
break;
|
||||
if(typeof(obj)=='undefined'||!obj) return;
|
||||
if (obj.nodeName == 'A' || obj.nodeName == 'BODY') break;
|
||||
}
|
||||
|
||||
if (obj.nodeName == 'A' && obj.href != '') {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,14 @@
|
|||
* rainbow.js는 http://www.dynamicdrive.com에서 제작하였으며 저작권을 가지고 있습니다.
|
||||
**/
|
||||
|
||||
// admin 모듈의 경우 무조건 패스
|
||||
/*
|
||||
if(Context::get('module') == 'admin') {
|
||||
$this->rainbow_link_is_called = true;
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
// 한번이라도 요청이 되었다면 패스
|
||||
if($this->rainbow_link_is_called) return;
|
||||
$this->rainbow_link_is_called = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue