473,545 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

style="HOVER{}" ? posible?

hey all,

i wonder if it is posible to make a A:HOVER without a class defintion..

so
<a href="#" style="{color:r ed;};HOVER{colo r:blue}">test</a>

because i am sending html email in the body and the web interface filters
out the classes..
anyone a solution or a tip?

Cheers,

D
Jul 21 '05 #1
3 74899
Els
dev wrote:
hey all,

i wonder if it is posible to make a A:HOVER without a class defintion..

so
<a href="#" style="{color:r ed;};HOVER{colo r:blue}">test</a>
<a href="#">test</a>

a:link{color:re d;}
a:hover{color:b lue;}

because i am sending html email in the body and the web interface filters
out the classes..


You mean it filters the CSS rules I think - not the classes?
Anyway, you can use the old-fashioned html attributes in the <body>
opening tag:
<body text="black" link="red" vlink="red" alink="blue">

Deprecated of course, but perfect for email I think.
alink is for selected links, not sure if hover counts as selected
though. I guess you'll need an onmousover script for that.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
dev wrote:
hey all,

i wonder if it is posible to make a A:HOVER without a class defintion..

so
<a href="#" style="{color:r ed;};HOVER{colo r:blue}">test</a>


No. Pseudoclasses can't be used in STYLE attributes.
Jul 21 '05 #3


"Harlan Messinger" <hm************ *******@comcast .net> wrote in message
news:3h******** ****@individual .net...
dev wrote:
hey all,

i wonder if it is posible to make a A:HOVER without a class defintion..

so
<a href="#" style="{color:r ed;};HOVER{colo r:blue}">test</a>


No. Pseudoclasses can't be used in STYLE attributes.


@Harlan
Thanks for the info.

@Els you cant use scripts in body email format because all will be filtert
out.

but anyway thanks for the responses

Cheers,

D

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
78166
by: al | last post by:
Hi, I've been trying to create a image mouseOver effect using CSS - is this possible? Or will I have to use DIV tags or something along those lines? I've tried a number of things - the code below will work for the border no problem, but I can't seem to get the SRC to work - is this not an option in CSS?
9
2684
by: Max Weebler | last post by:
Hi, I have a datagrid built that has an alternating item style that sets the backcolor and ForeColor of its rows. I have 4 template columns. One of them has a LinkButton embedded in it to perform updates. All the styles that are set are being followed by all templated columns with the exception for the update column. The update column...
1
4753
by: DiegoMx | last post by:
I'm having a problem with "a:visited" properties overriding "a:hover" ones - here's the relevant part of my CSS: a.barra { position:absolute; top:30px; font-family:century gothic; padding:10px; font-size:12pt; font-weight:bold; color:#4855A9;
2
4733
by: spifster | last post by:
Hello all, I am building a collapsable tree using Javascript with DOM in IE. In order to make collapsed cells disappear I have been hiding the text. The cells collapse but still leave borders behind. I have set the borderStyle to none and the black lines go away, but there is still white space where the borders were. Following are my...
1
3022
by: Paul | last post by:
Below is the html and css. It works in Firefox but not IE. When you click on "Your Links", it should cause a new menu "system" to open up to the right of the "Your Links" with two menu options. What am I missing to make it work in IE? HTML Code: ..... #navigation {
1
1338
by: bobmct | last post by:
Anyone: As a non-js programmer (but incorporater of js code into my perl/php/html sites) I am attempting to create vertical self expanding menu (when the user cursors over a selection it will popup an additional set of selections if there are any). All my searching has brought me to a free version from www.gurtom.com, especially their...
4
2692
by: knkk | last post by:
I have style definitions that look like this: .a10b, .a10b a:link, .a10b a:visited, .a10b a:hover { font: 10px Arial; color: #000000;
9
1796
Death Slaught
by: Death Slaught | last post by:
I'm working on a web site, and every thing is fine except when I added the navagation bar......for some reason it pushes my navagation bar away from the border, which is odd because there's no reason it should be doing this. Here's the code: <html> <head> <style type="text/css"> body {
5
8668
by: dangt85 | last post by:
Hello, I have the following page: ... <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
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...
0
7669
Oralloy
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. ...
0
7926
jinu1996
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...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5987
agi2029
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...
0
4962
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.