473,466 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

preload css-style?

roN
Hi,

I have following issue: I'm changing the css-style of a tab like following
when the mouse is rolling over it:
onMouseOver="this.className='frontbarOverIE'" and the css style looks like
following:
..frontbarOverIE {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #FFFFFF;
background-repeat: no-repeat;
font-weight: bold;
text-decoration:none;
background-image: url(images/orange_title_backgnd_hi.jpg);
}
how can I preload the image(images/orange_title_backgnd_hi.jpg) used in the
css style?
Thank you!

Ron
Jun 19 '06 #1
5 3959
Create a invisible div and set it's class to "frontbarOverIE".

--------------------------------------------------------------------
http://capxous.com
CAPXOUS.AutoComplete, a handly AJAX autocomplete component.

roN wrote:
Hi,

I have following issue: I'm changing the css-style of a tab like following
when the mouse is rolling over it:
onMouseOver="this.className='frontbarOverIE'" and the css style looks like
following:
.frontbarOverIE {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #FFFFFF;
background-repeat: no-repeat;
font-weight: bold;
text-decoration:none;
background-image: url(images/orange_title_backgnd_hi.jpg);
}
how can I preload the image(images/orange_title_backgnd_hi.jpg) used in the
css style?
Thank you!

Ron


Jun 19 '06 #2
roN
Cheng Guangnan wrote:
Create a invisible div and set it's class to "frontbarOverIE".
huh? how do I set an [i]invisible[i] div?
just like:
<div class+"frontbarOverIE"></div> anywhere past my html-header?
Thank you!
--------------------------------------------------------------------
http://capxous.com
CAPXOUS.AutoComplete, a handly AJAX autocomplete component.

roN wrote:
Hi,

I have following issue: I'm changing the css-style of a tab like
following when the mouse is rolling over it:
onMouseOver="this.className='frontbarOverIE'" and the css style looks
like following:
.frontbarOverIE {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #FFFFFF;
background-repeat: no-repeat;
font-weight: bold;
text-decoration:none;
background-image: url(images/orange_title_backgnd_hi.jpg);
}
how can I preload the image(images/orange_title_backgnd_hi.jpg) used in
the css style?
Thank you!

Ron


--
chEErs roN

I'm root, I'm allowed to do this! ;)
keep on rockin'
Jun 20 '06 #3
roN said the following on 6/19/2006 11:44 PM:
Cheng Guangnan wrote:
Create a invisible div and set it's class to "frontbarOverIE".
huh? how do I set an [i]invisible[i] div?


with CSS
just like:
<div class+"frontbarOverIE"></div> anywhere past my html-header?


<div class="frontbarOverIE" style="display:none"></div>

Although it may take visibility:hidden to cause the background to load.

Or, simply size it 1px x 1px:

<div class="frontbarOverIE" style="width:1px;height:1px"></div>

comp.infosystems.www.authoring.stylesheets is that way ----->

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 20 '06 #4
roN
Hey,

I added following in my code:

<div class="frontbarOverIE" style="display:none"></div>
<div class="frontbargrayOverIE" style="display:none"></div>

but it wouldn't preload the styles... :( why not? Another approach?
Thank you!

"Cheng Guangnan" <ch*****@gmail.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
Create a invisible div and set it's class to "frontbarOverIE".

--------------------------------------------------------------------
http://capxous.com
CAPXOUS.AutoComplete, a handly AJAX autocomplete component.

roN wrote:
Hi,

I have following issue: I'm changing the css-style of a tab like
following
when the mouse is rolling over it:
onMouseOver="this.className='frontbarOverIE'" and the css style looks
like
following:
.frontbarOverIE {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #FFFFFF;
background-repeat: no-repeat;
font-weight: bold;
text-decoration:none;
background-image: url(images/orange_title_backgnd_hi.jpg);
}
how can I preload the image(images/orange_title_backgnd_hi.jpg) used in
the
css style?
Thank you!

Ron

Jun 21 '06 #5
roN said the following on 6/21/2006 11:59 AM:
Hey,

I added following in my code:

<div class="frontbarOverIE" style="display:none"></div>
<div class="frontbargrayOverIE" style="display:none"></div>

but it wouldn't preload the styles... :( why not? Another approach?
Thank you!


style="visibility: hidden;height: 1px; width:1px;"

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 21 '06 #6

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

Similar topics

7
by: MALdito | last post by:
hi everybody let me say right from the start .. I´m not a coder ... "just" a designer! that said .. here is my question: I´m using dreamweaver´s built in preloader for a menu. it looks like...
3
by: Max Biancofiore | last post by:
I am working on a website. Can everybody have a look at www.intheloop.org.uk/sw5/index.html and tell me: 1) How long do the buttons take to download. (state connection speed too). 2) How do...
2
by: Albert Spencil | last post by:
I have tried several preload scripts found here; plus, some of my own. The only thing that works is the unsophisticated loading of those tiny images. The download consist of 100+ images amounting...
1
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of...
1
by: Dave | last post by:
I am looking for a Javascript code to preload 4 images, and display a different image in their place during a mouseover. In other words, 8 images total. I'm not quite finding anything appropriate....
1
by: Peter Fastré | last post by:
Hello The javascript preload function I always used, is causing problems with the latest version of gecko-browsers. Never had any problems with it though. Maybe there's something wrong? ...
3
by: misdst23 | last post by:
Hi, I would like to use the preload feature to transmit data from the client to the server. I use the SRC attribute of the image to compose the URL and transmit the info. How can i do this? Any...
2
by: =?Utf-8?B?Q2FzcGE=?= | last post by:
Is there any way to preload an image returned by an HTTP Handler? My image HTTP handler is generating some thumbnails that I want to preload. thanks Caspa
1
by: shapper | last post by:
Hello, Is there a way to preload a few images of a page using only CSS? If yes, how can I do it, and should I use CSS or Javascript to do this? Thanks, Miguel
3
by: Revathi Balakrishnan | last post by:
Hi i have the used the below code to switch the button image on mouseover and mouseout. <html:button property="Button" value="Display" styleClass="displaybutton" ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
1
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...
0
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...
0
isladogs
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.