Hover Script
2 posters
Page 1 of 1
Hover Script
Hi there. Below is a code I've made for my forum, it makes my nav bar change upon hovers. The only problem is that with this, all buttons show no matter what. I need some sort of "if logged in..." code. Does anyone know of it, or have a solution?
That is my code. Does anyone know how to make certain buttons show when loggged in, and others when logged out? Also, for some reason, the first 5 aren't changing during hove. I'll probably solve that shortly, though.
- Code:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "http://i43.tinypic.com/sbn1wy.gif";
image2 = new Image();
image2.src = "http://i41.tinypic.com/wi60d0.gif";
image3 = new Image();
image3.src = "http://i43.tinypic.com/2zjkzy8.gif";
image4 = new Image();
image4.src = "http://i42.tinypic.com/2encldy.gif";
image5 = new Image();
image5.src = "http://i41.tinypic.com/2eol6ki.gif";
image6 = new Image();
image6.src = "http://i42.tinypic.com/2rqk9d3.gif";
image7 = new Image();
image7.src = "http://i42.tinypic.com/2rqk9d3.gif";
image8 = new Image();
image8.src = "http://i41.tinypic.com/ibvpfb.gif";
image9 = new Image();
image9.src = "http://i40.tinypic.com/15cf0p4.gif";
image10 = new Image();
image10.src = "http://i39.tinypic.com/33e7rbc.gif";
// End -->
</script>
</HEAD>
<BODY><div id=EchoTopic>
<a href="http://www.bearvillesource.com/portal.htm" onmouseover="image1.src='http://i43.tinypic.com/sbn1wy.gif';"
onmouseout="image1.src='http://i43.tinypic.com/2mpzhw7.gif';">
<img name="image1" src="http://i43.tinypic.com/2mpzhw7.gif" border=0></a>
<a href="http://www.bearvillesource.com/forum.htm" onmouseover="image2.src='http://i41.tinypic.com/wi60d0.gif';"
onmouseout="image2.src='http://i41.tinypic.com/2ev9r8k.gif';">
<img name="image2" src="http://i41.tinypic.com/2ev9r8k.gif" border=0></a>
<a href="http://www.bearvillesource.com/profile.forum?mode=editprofile" onmouseover="image3.src='http://i43.tinypic.com/2zjkzy8.gif';"
onmouseout="image3.src='http://i42.tinypic.com/343lo4o.gif';">
<img name="image3" src="http://i42.tinypic.com/343lo4o.gif" border=0></a>
<a href="http://www.bearvillesource.com/Games-h2.htm" onmouseover="image4.src='http://i42.tinypic.com/2encldy.gif';"
onmouseout="image4.src='http://i44.tinypic.com/2lxjo14.gif';">
<img name="image4" src="http://i44.tinypic.com/2lxjo14.gif" border=0></a>
<a href="http://www.bearvillesource.com/Codes-h1.htm" onmouseover="image5.src='http://i41.tinypic.com/2eol6ki.gif';"
onmouseout="image5.src='http://i44.tinypic.com/iqeubo.gif';">
<img name="image5" src="http://i44.tinypic.com/iqeubo.gif" border=0></a>
<a href="http://www.bearvillesource.com/msg.forum?folder=inbox" onmouseover="image6.src='http://i42.tinypic.com/2rqk9d3.gif';"
onmouseout="image6.src='http://i41.tinypic.com/2a7sqpl.gif';">
<img name="image6" src="http://i41.tinypic.com/2a7sqpl.gif" border=0></a>
<a href="http://www.bearvillesource.com/msg.forum?folder=inbox" onmouseover="image7.src='http://i42.tinypic.com/2rqk9d3.gif';"
onmouseout="image7.src='http://i41.tinypic.com/2a7sqpl.gif';">
<img name="image7" src="http://i41.tinypic.com/2a7sqpl.gif" border=0></a>
<a href="http://www.bearvillesource.com/login.forum?connexion" onmouseover="image8.src='http://i41.tinypic.com/ibvpfb.gif';"
onmouseout="image8.src='http://i44.tinypic.com/x1m4wo.gif';">
<img name="image8" src="http://i44.tinypic.com/x1m4wo.gif" border=0></a>
<a href="http://www.bearvillesource.com/login.forum?logout=true&sid=%s" onmouseover="image9.src='http://i40.tinypic.com/15cf0p4.gif';"
onmouseout="image9.src='http://i41.tinypic.com/qyxx7d.gif';">
<img name="image9" src="http://i41.tinypic.com/qyxx7d.gif" border=0></a>
<a href="http://www.bearvillesource.com/profile.forum?mode=register" onmouseover="image10.src='http://i39.tinypic.com/33e7rbc.gif';"
onmouseout="image10.src='http://i39.tinypic.com/213jehk.gif';">
<img name="image10" src="http://i39.tinypic.com/213jehk.gif" border=0></a>
</BODY>
That is my code. Does anyone know how to make certain buttons show when loggged in, and others when logged out? Also, for some reason, the first 5 aren't changing during hove. I'll probably solve that shortly, though.
Last edited by notMicElf on June 12th 2009, 3:59 pm; edited 1 time in total
notMicElf- Forumember
- Posts : 377
Reputation : 0
Language : English, HTML, CSS, Java
Location : Not where you are =P
Re: Hover Script
Find the code for the login button. I'm sure its got an if code, like if user name=yes, and if passowrd=yes, and submit button=click, then login. I dunno, lol, just guessing. And where do you paste that code anyway?
Arden Marshall- Forumember
- Posts : 82
Reputation : 0
Language : English
Re: Hover Script
It goes in "Overall_header"
notMicElf- Forumember
- Posts : 377
Reputation : 0
Language : English, HTML, CSS, Java
Location : Not where you are =P
Re: Hover Script
Arden Marshall wrote:Find the code for the login button. I'm sure its got an if code, like if user name=yes, and if passowrd=yes, and submit button=click, then login. I dunno, lol, just guessing. And where do you paste that code anyway?
I tried finding it. To make the forums very simple and easy to use for people with tech skills of all levels, the code that I need isn't open. they use variables, as to prevent anyone who doesn't know the script from messing it up, but in this case, I need to get into it and edit.
notMicElf- Forumember
- Posts : 377
Reputation : 0
Language : English, HTML, CSS, Java
Location : Not where you are =P
Similar topics
» Requesting Navbar On Hover Script
» embed Script code in forum? (<script </script>)
» Blue arrow hover : navigation hover bar
» [JAVA script]How to set a countdown script to forum/portal?
» Hover/Un-Hover Code
» embed Script code in forum? (<script </script>)
» Blue arrow hover : navigation hover bar
» [JAVA script]How to set a countdown script to forum/portal?
» Hover/Un-Hover Code
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum