it works in a way I really don't like Options
BarbeRouge
Posted: Thursday, September 20, 2007 3:05:14 PM
Rank: Enthusiast

Joined: 1/8/2007
Posts: 13
Who did already visit the NorthCarolina tourism web site ?
Every time a page is loading, you see a random landscape of the state. I was impressed the first time I saw it. Of course I can get a similar effect with a quiet simple javascript and it's not very difficult to insert it in a master template.
That's what I finally did. But I'm not satisfied. This is not a job for javascript.
If user has javascript turned off, I have no css to show, no background to display.
Here is the main reason why I was trying to achieve this with C# Code.
I'm very frustrated now because my code works great in a normal aspx page but has no utility with Umbraco.
I will use javascript tonight. Can't tell my friends I was unable to do what I planned to do !
But when website is online, I would like C# to choose my css. Is there anyone that can help ?
And last but not least: Is it possible to use the ASP.NET App_Theme folder wiwth Umbraco ? Can I use the Page.preInit method with Umbraco ?


Web Design & Traduzioni
BarbeRouge
Posted: Thursday, September 20, 2007 3:24:19 PM
Rank: Enthusiast

Joined: 1/8/2007
Posts: 13
drobar
Posted: Thursday, September 20, 2007 3:28:14 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
Check out this thread for how to get random images in XSLT.
http://forum.umbraco.org/14943

Then call the macro in your template and you have a new image every time it is loaded. No javascript. Everything done by the server. Neat. Clean. Robust. Simple.


BTW, do you know about the umbraco community search? It's a real help when looking for answers. Full Google syntax. Looks at all the major umbraco-related sites at once. Find out more at http://forum.umbraco.org/misc/umbraco-community-search

cheers,
doug.

MVP 2007-2009 - Percipient Studios
BarbeRouge
Posted: Thursday, September 20, 2007 3:54:01 PM
Rank: Enthusiast

Joined: 1/8/2007
Posts: 13
Thank you, I will work around this and then, let you know, or answer you , or...:thumbup:
Eric

Web Design & Traduzioni
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.