The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Links

1 reply on 1 page. Most recent reply: Sep 28, 2003 8:05 AM by Adam Delanny

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Adam Delanny

Posts: 2
Nickname: mali15
Registered: Sep, 2003

Java Links Posted: Sep 28, 2003 8:01 AM
Reply to this message Reply
Advertisement
Hey in response to your question, try this for text hover that brings up links. Just stick in whatever when it says YOU

<java>

<script language='javascript'>
if (top.location != location)
{top.location.href = document.location.href;}
</script>
</head>
<body link=#YOURCOLOR alink=#YOURCOLOR nvlink=#YOURCOLOR>
<script language=JavaScript>
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{d ocument.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmen u=new Function("return false")
// -->
</script>
<div class="bgl"></div>
<div class="bgr"></div>
<div class="menu">
<div class="link">
<DIV id=Layer3 style="YOU: YOUpx; POSITION: absolute; TOP: YOUpx" class=l align=YOU><BIG>

<A HREF="YOU" onMouseover="showit(1)" style="color: #YOURCOLOR>

</BIG>
<div align=center>
<ilayer width=YOU name="dep1">
<layer name="dep2" width=YOU>
</layer>
</ilayer>
<div id="describe" style="width:YOUpx" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2">
var submenu=new Array()



var delay_hide=2000
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()} }
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("sh owit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;}
</script>
</div></div></div>

<script language='javascript'>
if (top.location != location)
{top.location.href = document.location.href;}
</script>
</head>
<body link=#YOURCOlOR alink=#YOURCOLOR nvlink=#YOURCOLOR>
<script language=JavaScript>
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{d ocument.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmen u=new Function("return false")
// -->
</script>
<div class="bgl"></div>
<div class="bgr"></div>
<div class="menu">
<div class="link">
<DIV id=Layer3 style="YOU: YOUpx; POSITION: absolute; TOP: YOUpx" class=l align=YOU><BIG>

<A HREF="index.html" onMouseover="showit(0)" style="color: #YOURCOLOR>
</BIG>
<div align=center>
<ilayer width=YOU name="dep1">
<layer name="dep2" width=YOU>
</layer>
</ilayer>
<div id="describe" style="width:YOUpx" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>
<script language="JavaScript1.2">
var submenu=new Array()


submenu[0]='<a href="YOUR LINKS">YOURLINKS</A>'


var delay_hide=2000
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()} }
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("sh owit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;}
</script>
</div></div></div>

</java>


Adam Delanny

Posts: 2
Nickname: mali15
Registered: Sep, 2003

Re: Java Links Posted: Sep 28, 2003 8:05 AM
Reply to this message Reply
PLEASE DELETE THIS IT WAS STOLEN

Flat View: This topic has 1 reply on 1 page
Topic: Java vs C++ Previous Topic   Next Topic Topic: Create dialog....

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use