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: #11
RE: [HELP] HTML/JAVA mouseover code
ZiNgA BuRgA Wrote:You probably need to set a width and height for the image.  It's being set as a background so the element itself isn't sized to that.

I tried messing with that & added it to the hover image & both try's seem to have no change to it.

I changed the CSS code

width: ##px;
height: ##px;

to the image's dimensions & I tried adding that wxh dimensions under "a.backandforward:hover {"

neither had any effect change...

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
02/08/2009 05:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
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
Mickey
Down with MJ yo

Posts: 3,663.2843
Threads: 251
Joined: 26th Apr 2008
E-Pigs: 28.7300
Offline
Post: #13
RE: [SOLVED] HTML/JAVA mouseover code
lol, jquery is a javascript framework, and css works well with javascript, i don't think there's any other way Hmmm
Glad you got it working Madwin

[Image: MiCk3Y.jpg]

[Image: battle.png]

Spoiler for link:
(This post was last modified: 02/08/2009 06:54 PM by Mickey.)
02/08/2009 06:54 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: