|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
buttons and mouseevents
I have created buttons, and used a css style sheet to list the color, size, ect.
Problem is the buttons don't do anything, including link to the page I want them to, or change to the hover style when I mouse over. I have used the forum and found the code that is suposed to work, but umm... I don't think I have the actual function??? here's the code: button: php Code:
style: php Code:
Am I suposed to put a further onClick to send the user to a page when the button is clicked? If so how? And why won't the hover work??? Any help appreaciated. thanks in advanced. |
|
#2
|
|||
|
|||
|
RE: buttons and mouseevents
I got the onClick part
window.location.href='testpage.htm Now i just need to know why the hover isn't working! |
|
#3
|
|||
|
|||
|
RE: buttons and mouseevents
:laugh:
|
|
#4
|
|||
|
|||
|
RE: buttons and mouseevents
you need to make that js function formButton() that will change the CSS class on mouseOver and mouseOut.
it should go smth like Code:
function formButton(button, class) {
button.className=class;
}
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > buttons and mouseevents |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|