Results 1 to 3 of 3

Thread: Java redirect in a CSS document

  1. #1
    Join Date
    Nov 2002

    Java redirect in a CSS document

    Java redirect in a CSS file

    Is it possible, using BEHAVIOR or other selectors, to put some kind of java command in a .css file that would redirect to another page? My problem is I had a site on a free server who recently shut me out of editing or accessing the site, but its still up and the only access I have is the .css files for that now defunct site are remotely linked on a domain I do still have access to. So, I want to put some kind of code in those css files that will redirect anyone accessing the old site to my new domain. The reason I care is I've had this old site since '97 (!) and it gets monster traffic and my new site is just up and running and gets zero.

    Is it possible? I've tried 100 different combinations and google searched until my eyes are bleary but I can't make it work.

    Any help would be appreciated.

    you can AIM me or email me too if you like
    email: docweasel_com@hotmail.com
    AIM: docDWF

  2. #2
    Join Date
    Nov 2002
    As far as I know, that is not possible. You should try contacting the people in charge of your site and asking them to let you put a redirect script in. That's all the advice I can give you. Sorry!

  3. #3
    Join Date
    Nov 2002
    JAVA is a programing language, but I assume you are talking about JavaScript.
    In any case neighter can be put into a .css file.

    What you can do is to use :before or :after in combination with CSS CONTENT to add a textlink to the site, but most browsers don't understand that CSS yet.
    // Stefan Huszics

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center