Click here to Skip to main content
16,011,542 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Cleaning up sessions Pin
Heath Stewart21-Oct-03 7:02
protectorHeath Stewart21-Oct-03 7:02 
GeneralRe: Cleaning up sessions Pin
Dauger21-Oct-03 10:35
Dauger21-Oct-03 10:35 
GeneralRe: Cleaning up sessions Pin
Sage21-Oct-03 12:38
Sage21-Oct-03 12:38 
GeneralRe: Cleaning up sessions Pin
Paul Watson21-Oct-03 22:14
sitebuilderPaul Watson21-Oct-03 22:14 
GeneralRe: Cleaning up sessions - Further Questions Pin
Megan Forbes21-Oct-03 22:38
Megan Forbes21-Oct-03 22:38 
GeneralRe: Cleaning up sessions - Further Questions Pin
Sage22-Oct-03 2:12
Sage22-Oct-03 2:12 
GeneralDynamic CSS linking via Javascript Pin
shem721-Oct-03 2:44
shem721-Oct-03 2:44 
GeneralRe: Dynamic CSS linking via Javascript Pin
Heath Stewart21-Oct-03 7:09
protectorHeath Stewart21-Oct-03 7:09 
There's a couple different ways of doing this. One is to use CSS expressions, but this is only supported in the later versions of Internet Explorer.

Another way is to use some sort of entry code for each page on your site plus cookies. When a user loads a page (window.onload), gather the information you want, put that in a cookie, and reload the page. If the cookie exists, you don't do this step. (This requires dynamic pages like ASP, ASP.NET, PHP, JTHML, etc.) The server reads the cookie and spits out the appropriate line for the stylesheet in the header (conditional server-side include).

Although, if all you need to do is display a different background, you can do this with the body.background property directly in script.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Dynamic CSS linking via Javascript Pin
shem722-Oct-03 0:54
shem722-Oct-03 0:54 
GeneralRe: Dynamic CSS linking via Javascript Pin
Heath Stewart22-Oct-03 3:13
protectorHeath Stewart22-Oct-03 3:13 
GeneralAccessing an hyperlink associated with a cell in excel sheet in asp environment Pin
kavi_kanth20-Oct-03 22:46
kavi_kanth20-Oct-03 22:46 
GeneralCSS question. Pin
theJazzyBrain19-Oct-03 23:13
theJazzyBrain19-Oct-03 23:13 
GeneralRe: CSS question. Pin
ZoogieZork20-Oct-03 6:02
ZoogieZork20-Oct-03 6:02 
GeneralRe: CSS question. Pin
theJazzyBrain20-Oct-03 8:05
theJazzyBrain20-Oct-03 8:05 
GeneralRe: CSS question. Pin
Rocky Moore25-Oct-03 5:11
Rocky Moore25-Oct-03 5:11 
GeneralRestriced acces to web service method Pin
sybux200018-Oct-03 21:57
sybux200018-Oct-03 21:57 
GeneralJScript/PHP eval() Pin
alex.barylski18-Oct-03 18:21
alex.barylski18-Oct-03 18:21 
GeneralLooking for help Pin
webmusic17-Oct-03 16:52
webmusic17-Oct-03 16:52 
Generalto get GMT time with respect to locale Pin
mukeshr16-Oct-03 2:57
mukeshr16-Oct-03 2:57 
GeneralRe: to get GMT time with respect to locale Pin
mukeshr16-Oct-03 20:33
mukeshr16-Oct-03 20:33 
GeneralFlash z-order problem Pin
ProffK16-Oct-03 2:56
ProffK16-Oct-03 2:56 
GeneralRe: Flash z-order problem Pin
alex.barylski16-Oct-03 21:22
alex.barylski16-Oct-03 21:22 
GeneralJason Henderson's todo list error Pin
roba15-Oct-03 22:23
roba15-Oct-03 22:23 
GeneralRe: Jason Henderson's todo list error Pin
Sage16-Oct-03 8:20
Sage16-Oct-03 8:20 
GeneralRe: Jason Henderson's todo list error Pin
roba17-Oct-03 5:05
roba17-Oct-03 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.