Results 1 to 6 of 6

Thread: Style Sheet Switcher (v1.0)

  1. #1
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Style Sheet Switcher (v1.0)

    1) Script Title:

    Style Sheet Switcher (v1.0)

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...etswitcher.htm

    3) Describe problem:

    No Random or Rotating Stylesheet Option (w/cookie).
    Example: http://wholives.com

  2. #2
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    PS:

    Here is a php random/rotating selector version
    that anyone is welcome to use or further develop.
    http://ezportal.org/design/premium/a...a24/random.php

    This is what I want the final to look like, see top left pulldown selector
    with random, all cookied, even random:
    http://ezportal.org

    MikeE

  3. #3
    Join Date
    Oct 2006
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Please help me

    Instead of using pulldown menu or radio box i am using images for selecting theme...something like this
    HTML Code:
    <li><a href="#"  type="image" name="color_image" id="red" onClick="chooseStyle(this.id, 60)"><img src="images/colors_red.jpg" alt="red" /></a></li>
    <li><a href="#" type="image" name="color_image" id="green" onClick="chooseStyle(this.id, 60)"><img src="images/colors_green.jpg" alt="green" /></a></li>
    and i use css to to indicate selected class="current"
    HTML Code:
    <li><a href="#" type="image"class="current" name="color_image" id="green" onClick="chooseStyle(this.id, 60)"><img src="images/colors_green.jpg" alt="green" /></a></li>
    But how do i change when selection changes?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Jigarshah:
    In the future please start a new thread when you're asking a new question.

    But how do i change when selection changes?
    Can you elaborate? Change what when selection changes?

  5. #5
    Join Date
    Oct 2006
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Oh i m sorry..i thought starting a newone will messup forum...

    I want to change image transperancy
    its css and actual code is like below
    Code:
    <div id="colormenu">
    <ul>
    <li><a href="#" type="image" name="color_image" id="blue" onClick="chooseStyle(this.id, 60)"><img src="images/colors_blue.jpg " alt="blue" /></a></li>
    <li><a href="#" type="image" name="color_image" id="orange" onClick="chooseStyle(this.id, 60)"><img src="images/colors_orange.jpg" alt="blue" /></a></li>
    <li><a href="#" type="image" name="color_image" id="red" onClick="chooseStyle(this.id, 60)"><img src="images/colors_red.jpg" alt="red" /></a></li>
    for selected
    Code:
    <li><a class="current" href="#" type="image" name="color_image" id="red" onClick="chooseStyle(this.id, 60)"><img src="images/colors_red.jpg" alt="red" /></a></li>
    css is
    Code:
    #colormenu a.current img {
    background:#f0f0f0;
    color:#505050;
    border-right:1px solid #505050 ; 
    border-top:1px solid #505050 ; 
    border-bottom:1px solid #505050 ; 
    border-left:1px solid #505050 ; 
    padding:3px 3px 3px 3px; 
    opacity: 1;
    filter: alpha(opacity=100);}
    am i doing something wrong ?

  6. #6
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jigarshah

    hi jigarshah...

    You told that opacitiy style for image is not working is it?

    Instead of writing like this ...
    'opacity: 1;
    filter: alpha(opacity=100);}'


    you please try this statement if it is for IE...it should be
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);

    or if its for Mozilla Firefox, then it should be...
    -moz-opacity: 0.4;
    ...

    Please try this and let me know if the image transperancy doesn't works properly..

    Thanks

    Hari
    abouthtmls.com - under construction

Bookmarks

Posting Permissions

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