/    Sign up×
Community /Pin to ProfileBookmark

html stylesheets

Hey, in efforts to get custom cursors working with firefox I needed to change the cursor source file to a .gif, and I have done that using a CSS stylesheet. My problem is that Internet Explorer will only accept cursors that are some sort of cursor file (either .cur or .ani). I have found one ressolve that will allow me to have custom cursors with both IE and Firefox. This is to iniate the .gif custom cursors using CSS for firefox, and then adding <body style=”cursor: url(‘images/cursor.ani)”> and for all the links using <a style=”cursor: url(‘images/cursor.ani)” href=”http://www.url.com“>.

However, as you can probably tell, adding the style to every single link is a little more than a hassel. So I am wondering if there is any kind of stylesheet that I can do with HTML, similar to CSS, so that I can iniate style=”cursor: url(‘images/cursor.ani)” on every link the same as can be done with CSS. Thanks.

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@thoughtcubeJul 13.2006 — Perhaps I don't understand the question, but why not have a CSS file, that all your pages use, containing

body {

cursor: url('images/cursor.ani)"

}

a {

cursor: url('images/cursor.ani)"

}

?
Copy linkTweet thisAlerts:
@bmassauthorJul 13.2006 — Because I already have one that it used to initiate a cursor code for firefox using the .gif images. I can't initiate the .gif cursors and the .ani cursors both in CSS. Basically I need to have the same cursor twice, one as a picture file (for firefox) and another as a cursor file (for IE). I've tried to have the code for both in my stylesheet but it will not work. One needs to be in html and another in CSS.
Copy linkTweet thisAlerts:
@thoughtcubeJul 13.2006 — How about having a different stylesheet for each browser? Lots of sites do that, for such problems.
Copy linkTweet thisAlerts:
@bmassauthorJul 13.2006 — how could I do that? Just <link rel="stylesheet" type="text/css" href="style.css"> and then another one right after linking to a differnet stylesheet? And also, would that work with a forum? Because I have the cursors thrown into the stylesheet.
Copy linkTweet thisAlerts:
@thoughtcubeJul 13.2006 — The way I've seen it done is to dynamically create the <link rel ...> (but there may be other ways). I mean, have in your header javascript code that uses document.write() to create an appropriate <link rel ...>, according to the browser.
Copy linkTweet thisAlerts:
@bmassauthorJul 13.2006 — How do you dynamically create a <link rel...>? And I don't really know much javascript, the only javascript I've used has been directly copied.
Copy linkTweet thisAlerts:
@ray326Jul 14.2006 — IE has conditional statements that could be used to follow up the GIF cursor declaration with a cur/ani cursor declaration if the browser is IE.
Copy linkTweet thisAlerts:
@thoughtcubeJul 14.2006 — Here is an example of what you want:

[URL=http://www.scriptygoddess.com/archives/2002/06/28/load-different-stylesheet-based-on-browser/]different stylesheets for different browsers[/URL]
×

Success!

Help @bmass spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...