473,546 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image mouseover/mouseout attributes and Theme/Skin question

Hi all,
I am building a web site with theme support, under each theme's folder there
are some images. Some of my images need to be skinned, I know I can build a
skin file with line like

<asp:Image runat="server" ImageUrl="image s/email.gif" skinid="Email"
BorderWidth="0" />

Then in my master page or web page I can call this skin like

<asp:Image ID="img" runat="server" SkinID="Email" />

This works perfectly until I need to add mouseout/mouseover client
attributes to this image. Usually what I do is

img.Attributes. Add("onMouseOve r", "msover('img',' images/email_on.gif'); ");
img.Attributes. Add("onMouseOut ", "msout('img','i mages/email_off.gif') ;");

Now, my question is how to pull these on/off images from theme folder?

--
Regards
Hardy
Feb 13 '07 #1
0 1759

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

Similar topics

3
13450
by: John | last post by:
Imagine this: I have a gif-image with text, coloured green. When MouseOver occurs the gif will swap to another gif with red colourded text. On MouseOut the gif turns back to the green text. -----------------This is my code: <a href="nextpage.html" onMouseOver="document.green.src='red.gif'" onMouseOut="document.green.src='green.gif'">
1
1101
by: Michael Phillips | last post by:
I am attempting to create drop down menus for a web page. The simplist approach I see is to create two images. One is a tab image and the other is a menu image. In my code a present the tab image when the page loads. Associated with the tab image is a mouseover event to show the menu image by replaceing the image source.. A usemap is used...
6
24179
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and mouseout are working perfect but only the source is not setting using java script. Please clarify me regarding this. PS: This problem is only for...
2
14676
by: Matt Colegrove | last post by:
How does one set a Mouseover/Mouseout event on a cell in a GridView? I can successfully assign these events to be active on a row in a GridView. I can do this with a DataGrid, by adding code to the OnItemBoundDataGrid event
1
2991
by: walter | last post by:
Hi there, after I put my images under theme folder, I'm stuck in the page because I don't know how to reference the image URL? I cannot hard-code because theme maybe switch. It looks like I need to dynamically get the theme folder then I can assemble a relative path. Is there any way to do this ? Any suggestion ? Appreciate for any...
2
2444
by: CK | last post by:
Hello All, I am trying to extend the default asp:ImageButton to include an image for an enabled state and a second image for a disabled state. I currently did this by extending the ImageButton class in a custom control, creating a property for each of these images (EnabledImageUrl, DisabledImageUrl) and then overrode the Enabled property to...
1
6297
by: wkerplunk | last post by:
On mouseover it goes to the correct map say TheMap1.jpg and then on mouseOut it defaults back to map, I need to do a onClick that sets the TheMap1.jpg mouseOver to the default TheMap.jpg so the TheMap1.jpg is now the default image not the TheMap.jpg. So after I click for information, and mouseOut of that area TheMap1.jpg will stay as all the...
1
1665
by: JB | last post by:
I have a set of links that are currently images that when the person rolls over them, they change color. Essentially the image is a box where the background is brown and the text is blue. When the person rolls over it, they want it blue background with brown text. As I said we currently do images but that is annoying. Is there an easy way (...
4
1328
by: lionel luo | last post by:
how to find where is the imagelogo? Please advice.Thansk. Code:---------------------------------------------------- private Image __BuildControlImageLogo () { Image image1 = new Image (); base.ImageLogo = image1; image1.SkinID = "ImageLogo"; image1.ApplyStyleSheetSkin (this.Page); image1.BorderWidth = new Unit (0D, UnitType.Pixel);
0
7507
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
7435
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
7947
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...
1
7461
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...
0
7794
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
6030
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
5080
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...
1
1922
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
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.