473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1489
In article <eL**************@TK2MSFTNGP05.phx.gbl>, Jerad Rose
<no@spam.comwrites
>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.Theme %>/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
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...
4
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...
4
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
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
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...
1
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...
5
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...
1
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...
11
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
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...

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.