473,785 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Skins and Images

I must be missing something, because this seems like it should be so obvious
(and maybe it is).

All I'm trying to do is create various skins for my site, with each skin
containing a list of 30 some odd static images. In my page, I want to set
the skin for the page, and then each image to be loaded from that skin's
folder. That's all.

For example, my page might look something like this:

<img src="[SkinFolder]/top.gif">
<img src="[SkinFolder]/logo.gif">
<img src="[SkinFolder]/bottom.gif">

I would have 4 folders set up for skins, each of them containing these
images (but each skin would have a different theme, of course). If I set my
page-level skin to Skin1, it would pull images from Skin1's folder.

I've read about skins on MSDN, newsgroups, and searching the web, but I
can't find any answers to this seemingly simple dilemma. Most of the
articles discuss using skins for setting themes on server-side controls. I
also considered the possibility that I should somehow be using CSS for this,
but CSS seems only appropriate for background images.

Thanks in advance for any direction provided.

Jerad
Jul 14 '06 #1
1 1510
In article <eL************ **@TK2MSFTNGP05 .phx.gbl>, Jerad Rose
<no@spam.comwri tes
>I must be missing something, because this seems like it should be so obvious
(and maybe it is).
I think you are missing the way that skins work. They are an integrated
part of themes, not something completely separate as you seem to think.
>All I'm trying to do is create various skins for my site, with each skin
containing a list of 30 some odd static images. In my page, I want to set
the skin for the page, and then each image to be loaded from that skin's
folder. That's all.

For example, my page might look something like this:

<img src="[SkinFolder]/top.gif">
<img src="[SkinFolder]/logo.gif">
<img src="[SkinFolder]/bottom.gif">
Are these skin folders hard-coded? If so, then you haven't gained
anything as you might just as well have typed <img
src="/images/top.gif"etc.

You can do something like...

<img src="<%=Page.Th eme %>/top.gif">

(air code, so check exact syntax), but that's a pain as you have to do
it for every image.
>I would have 4 folders set up for skins, each of them containing these
images (but each skin would have a different theme, of course). If I set my
page-level skin to Skin1, it would pull images from Skin1's folder.

I've read about skins on MSDN, newsgroups, and searching the web, but I
can't find any answers to this seemingly simple dilemma. Most of the
articles discuss using skins for setting themes on server-side controls.
And? All you have to do is make the <imgtags server side image
controls, then you can set a skin for the page and the images will be
loaded from the appropriate folder.
I
also considered the possibility that I should somehow be using CSS for this,
but CSS seems only appropriate for background images.
I wouldn't say "only," but certainly mainly.
>Thanks in advance for any direction provided.
Hope this helps

--
Alan Silver
(anything added below this line is nothing to do with me)
Jul 20 '06 #2

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

Similar topics

1
2612
by: Somesh Bartakkay | last post by:
I recently seen a small GUI program with Skins allplied. the library used for that is Activeskin. i wanna know weather Any GUi-Skins are available for pythons GUI ? or how to use the activeskins for python gui(say ANy )??
4
1569
by: Shawn Berg | last post by:
A web site I am working on is built completely in classic ASP, and allows the user to choose different "skins" for the site. The term "skin" being used very generically. When a user selects a Skin it controls what stylesheet is sent to their web browser, and also changes some images that display. For example, in a classic ASP page we may have the following: ## BEGIN CODE ## <img src="/images/<%= UserSkin %>_logo.jpg">
4
1555
by: Stefano | last post by:
Hi all, can you link me to a directory that contains ready-to-use .Text/Community Server Skins? I'm looking for a XHTML Skin, using table-less layout. Thank you so much! Bye --
0
990
by: DzemoT. | last post by:
I'm going to use skins in my application for the first time. Which is the best way to implement skins in applications?Any sugestions?Links? Thx
1
1542
by: kfc1976 | last post by:
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy Platform: XP Pro, .net 2.0 FrameWork, Visual Studio 2005 Problem Regarding:
1
2242
by: kfc1976 | last post by:
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy Platform: XP Pro, .net 2.0 FrameWork, Visual Studio 2005 Problem Regarding:
5
2564
by: Quynh | last post by:
Hi, I have a question regarding themes and skins in ASP.NET 2.0. Since I have images in the application menu bar and since the menu bar is defined in the web.sitemap file, how could I apply a theme (SkinID) to modify the images ? Thanks
1
1046
by: jhcorey | last post by:
I made a change to my Styles.css file on my machine, but when I copy this to a server, I don't see the effect of the changes that I made. I'm using skins that associate different kinds of controls with different style classes using cssClass. Is this association kept in a binary? I haven't changed the skin file itself. When I change just the css file on my machine, I see the results immediately. But I can't get them to take on the...
11
6620
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand where this would be used. As I understand it the precidence is like this.
0
9647
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10162
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6744
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4061
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
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.