Reply
Clickable background
Old 04-02-2008, 09:12 AM Clickable background
Novice Talker

Posts: 10
Name: Muhammad Abrar
I want to use following code for Clickable background.
<style type='text/css'>
BODY { background-image:url('my.aspx?id=001') }
</style>
where "my.aspx?id=001" will return an image randomly, but i also want this background
to be clickable (Navigate to my randomly specified Url)
How is it possible ? Share the Ideas and give me chance of thanks.
AbrarNazeer is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-02-2008, 01:04 PM Re: Clickable background
chrishirst's Avatar
Super Moderator

Posts: 12,442
Location: Blackpool. UK
background images cannot be "clickable", you would have to overlay an anchor element.

and the random background would be better done server side NOT with javascript.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Clickable background
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10855 seconds with 13 queries