T O P I C R E V I E W |
TastyNutz |
Posted - 24 August 2007 : 20:45:53 I'm experimenting with adding rounded tables to my site. Rather than trying to change the existing tables, I have created functions to start and stop a table with rounded corners. I then use these functions to "wrap" my existing tables with a thin, rounded border.
You can see how that looks HERE.
I'm pleased with the effect, but my site has additional "themes" and although the rounded table images have transparency, they don't look good on darker backgrounds. So, I want to pull different images depending on the theme. Seems like it should be simple... use "getCurrentIcon" to display the images that correspond to the selected theme. It SHOULD be simple, but I can't get it right.
I can pull the images, but my problem is getting the top/bottom and side images to become the cell background so that it "tiles" and fills the cell, however large the table is.
The functions below are my attempt to rewrite using ASP, but of course "background" doesn't work here. Can someone help me get this right?
< |
2 L A T E S T R E P L I E S (Newest First) |
TastyNutz |
Posted - 25 August 2007 : 01:10:10 Thank you. I got it working, thanks to your clue. Sometimes I need someone to remind me of the obvious. That's why I come here.
The functions:
And to each of my theme files I add:
Now I'm going to sleep. Tomorrow I'll create some new images.< |
MaD2ko0l |
Posted - 24 August 2007 : 21:01:50 hiya shouldnt the background properties be like this(added the bitz in red)
it seems like u r calling the images twice with out closing the starting <td> tag so when viewing it as normal html (ie right click > view source) it woudl look somthign liek this
hey wait...just looked at the inc_iconfiles.asp file and u wont be able to use the getCurrentIcon function to display the image because it add the whole img tags (eg. <img src="filename.gif">) rather than just the file name
< |
|
|