Jump to content

Recommended Posts

I've got the following code, and well when you mouse over the link it doesn't change the td class that I am trying to do. When you see the code you'll understand. Sorry, I'm a little new to javascript.

 

<style type="text/css">
	td.c0 {
		background: url(photos/temp.jpg) no-repeat 0 0;
		height: 68px;
		width: 178px;
		border: 1px solid #000000;
		padding: 0 none;
	}

	td.c10 {
		background: url(photos/temp.jpg) no-repeat 0 -10px;
		height: 68px;
		width: 178px;
		border: 1px solid #000000;
		padding: 0 none;
	}
</style>
<table border="0" cellpadding="0" cellspacing="0" align="center">
	<tr valign="top">
		<td>
			<table border="0" cellpadding="0" cellspacing="0" style="padding-right: 10px;">
				<tr>
					<td class="c0" id="imagechange"> </td>
				</tr>
			</table>
			<center><div class="galleryTitle"><a href="">Alignment Example</a></div></center>
		</td>
		<td>
			<u>Icon Alignment</u>:<br />
			<a href="" onmouseover="imagechange.className='c10'" onmouseout="imagechange.className='c0'">Top</a>
		</td>
	</tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/83020-solved-stupid-onmouseover-question/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.