Post Reply 
[SOLVED] HTML/JAVA mouseover code
I solved my problem! Thanks for all the help!!! :D
Author Message
Gadget
ɯƃıpɐɹɐd ssǝןpuǝ

Posts: 908.2697
Threads: 69
Joined: 23rd Apr 2008
Reputation: 0.85528
E-Pigs: 63.3012
Offline
Post: #12
RE: [SOLVED] HTML/JAVA mouseover code
Well I am going to bump/double post here because I figured out what I was doing wrong.  I appreciate everyone's effort to help me it is appreciated!!! Madwin

If your curious what I did wrong was to call out the javascript code in the headinclude template.  So I added:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script type="text/javascript"> 
<!--
if (document.images) 
    { 
	image7on = new Image(); 
	image7on.src = "styles/windows_vista/layout/back.png"; 
	image7off = new Image(); 
	image7off.src = "styles/windows_vista/layout/back_over.png";
	image8on = new Image(); 
	image8on.src = "styles/windows_vista/layout/forward.png"; 
	image8off = new Image(); 
	image8off.src = "styles/windows_vista/layout/forward_over.png";

    }  


function changeImages() 
    { 
	if (document.images) 
	    { 
for (var i=0; i<changeImages.arguments.length; i+=2) 
    { 
	document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src"); 
    } 
	    } 
    } 
 //-->
</script>


& then to my header template I added:

Spoiler for Long Code:

HTML Code
<a style="cursor: pointer;" onclick="history.go(-1)" onmouseover="changeImages('image7', 'image7off')" onmouseout="changeImages('image7', 'image7on')"><img title="Go Back" src="/styles/windows_vista/layout/back.png" name="image7" alt="Go Back" border="0"></a>

<a href="javascript:history.go(1)" onmouseover="changeImages('image8', 'image8off')" onmouseout="changeImages('image8', 'image8on')"><img title="Go Forward" src="/styles/windows_vista/layout/forward.png" name="image8" alt="Go Forward" border="0"></a>

& now all works perfectly!!!

Thanks again for everyones help, I didn't either realize how many diff comp languages do the same action (or close to) ;)

PSN: Brick_Factory

Spoiler for sigpic:
[Image: 157nb04.png]
Spoiler for NeCr0-B0T:
Necro-Bot
Necro may refer to:
    * necro-, the Greek prefix meaning death
Bot or BOT or similar may refer to:
    * Internet bot, computer program which does automated tasks
    * Botnet, network of "zombie" computers used to carry out automated tasks such as spamming
(This post was last modified: 02/08/2009 06:35 PM by Gadget.)
02/08/2009 06:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[SOLVED] HTML/JAVA mouseover code - Gadget - 01/08/2009, 10:38 PM
RE: [HELP] HTML mouseover code - Mickey - 01/08/2009, 11:02 PM
RE: [HELP] HTML mouseover code - Gadget - 01/08/2009, 11:19 PM
RE: [SOLVED] HTML/JAVA mouseover code - Gadget - 02/08/2009 06:33 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: