Hi,
I'm looking to change the cssclass on a hyperlink with the onmouseover. I've
tried the 3 syntax's below but to no success. Can someone point me in the
right direction.
Thanks
HyperLink1.Attr ibutes.Add("onm ouseover", "this.ClassName ='hover'")
HyperLink1.Attr ibutes.Add("onm ouseover", "this.CssClass= 'hover'")
HyperLink1.Attr ibutes.Add("onm ouseover", "this.Class='ho ver'")
Stylesheet says this.
..hover
{
text-decoration: underline overline blink none;
color: green;
cursor: wait;
} 3 5868
Oh yes, javascript is case sensitive and uses another casing.
Try this.className = 'hover'.
Hope this helps. ;-)
Jan.
"Vear" <Ve**@discussio ns.microsoft.co m> wrote in message
news:83******** *************** ***********@mic rosoft.com... Hi,
I'm looking to change the cssclass on a hyperlink with the onmouseover. I've tried the 3 syntax's below but to no success. Can someone point me in the right direction. Thanks
HyperLink1.Attr ibutes.Add("onm ouseover", "this.ClassName ='hover'") HyperLink1.Attr ibutes.Add("onm ouseover", "this.CssClass= 'hover'") HyperLink1.Attr ibutes.Add("onm ouseover", "this.Class='ho ver'")
Stylesheet says this.
.hover { text-decoration: underline overline blink none; color: green; cursor: wait; }
That works, thank you.
is there a site that shows how the case should be for each item? I seem to
run into that a lot.
Thanks
"Jan Kucera" wrote: Oh yes, javascript is case sensitive and uses another casing.
Try this.className = 'hover'.
Hope this helps. ;-) Jan.
"Vear" <Ve**@discussio ns.microsoft.co m> wrote in message news:83******** *************** ***********@mic rosoft.com... Hi,
I'm looking to change the cssclass on a hyperlink with the onmouseover. I've tried the 3 syntax's below but to no success. Can someone point me in the right direction. Thanks
HyperLink1.Attr ibutes.Add("onm ouseover", "this.ClassName ='hover'") HyperLink1.Attr ibutes.Add("onm ouseover", "this.CssClass= 'hover'") HyperLink1.Attr ibutes.Add("onm ouseover", "this.Class='ho ver'")
Stylesheet says this.
.hover { text-decoration: underline overline blink none; color: green; cursor: wait; }
Most of built-in javascript properties are lowerCamelCase, that means first
letter is lowercasae and every other starting word is uppercase.
I would start at http://msdn.microsoft.com/workshop/a...ence_entry.asp
Good luck,
Jan.
"Vear" <Ve**@discussio ns.microsoft.co m> wrote in message
news:B4******** *************** ***********@mic rosoft.com... That works, thank you.
is there a site that shows how the case should be for each item? I seem to run into that a lot.
Thanks
"Jan Kucera" wrote:
Oh yes, javascript is case sensitive and uses another casing.
Try this.className = 'hover'.
Hope this helps. ;-) Jan.
"Vear" <Ve**@discussio ns.microsoft.co m> wrote in message news:83******** *************** ***********@mic rosoft.com... > Hi, > > I'm looking to change the cssclass on a hyperlink with the onmouseover. > I've > tried the 3 syntax's below but to no success. Can someone point me in > the > right direction. > Thanks > > HyperLink1.Attr ibutes.Add("onm ouseover", > "this.ClassName ='hover'") > HyperLink1.Attr ibutes.Add("onm ouseover", > "this.CssClass= 'hover'") > HyperLink1.Attr ibutes.Add("onm ouseover", "this.Class='ho ver'") > > Stylesheet says this. > > .hover > { > text-decoration: underline overline blink none; > color: green; > cursor: wait; > } This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mr B |
last post by:
Howdy,
I want to set up an Include page in a cell of a table. Then I want to be able to change which page
is included on the fly as the user moves the mouse of the various links on the page. How can I do
this?
THe include page was set up via FrontPage so it put it's Bot stuff in there, but if someone could
tell me the "standard" way to...
|
by: bigoxygen |
last post by:
Hi.
I have a list that is similar to this:
-Evaluation
+test
+test
-Students
+test
I would like to change the "-" bullet only, but I cannot. My
|
by: Giggle Girl |
last post by:
Hi there,
I have a nav tree similar to the XP Windows Explorer in behavior. It
uses styles to underline a row on mouseover, and change the look of a
row when clicked.
Currently, it is working fine using CSS/Javascript, by calling
functions that underline and highlight by passing in IDs.
The problem is, I do not want to pass in IDs. ...
|
by: roN |
last post by:
Hi,
I have a table in which I would like to change the background image
onMouseOver. I implemented it with CSS but IE doesn't support hovers on
tables, so I'd need to go via JS for IE. Can anyone give me a hint how to
do this?
So far it looks like:
<tr>
<td class="frontbar"> <a href="#"><img src="images/dot.gif" width="10"
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?
-----------------------------------------------------------------------
When changing the status in an event (e.g. onmouseover) you
should return true from the event. Also a number of browsers...
| |
by: max |
last post by:
hello
(is this a css or a javascript question? or both?)
when hovering, I can change the background (bg) color of a field (div),
e.g.
http://www.bep-zuerich.ch/hover4.htm
with javascript I define, which div's of the navigation's secondary and
third level are visible or get hidden (not included in the example).
now I should be able to show...
|
by: sueian |
last post by:
can some1 help with this code.
can i add in a function like on click. when user click one of the link. the color will change to static from mouse over color. the text need to highligted after click.
thanks
<html>
<head>
<style type="text/css">
|
by: rlueneberg |
last post by:
I want to change the color of an "a" child element inside a table cell
via javascript. Is there any way to do that? Ps: there is no id
assigned to child elements. I would like to discover the child element
and change its color from the parent element if possible.
<script type="text/javascript">
function HightLightCell(mycell, mybgcolor)
{...
|
by: oll3i |
last post by:
i wrote css class for a href but when i add this class to link it doesnt see the image but when i add the inline css it sees it
i m writing javascript tab menu and i want tabs to change on mouse over, on mouse out and on click
a.menu_on_mouse_over{
width:80px;
height:22px;
float:left;
text-align:center;
margin-top:0;
margin-right:1px;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |