Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default Images in an option form

    Can it be done, ive been trying for ages but can't get them to show..
    Looking for a good desiner to design a social networking template.

    PM me.

  2. #2
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    So like the vB mood changer?

  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Don't no what that means

    I mean like

    <form>
    <select>
    <option><img src="img.jpg"></option>
    </select>
    </form>
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    <form>
    <select>
    <option><img src="img.jpg" /></option>
    </select>
    </form>

    remember to close img tag. dont know if it can be done though.

    if that dont work, try


    <form>
    <select>
    <option><img src="img.jpg"></img></option>
    </select>
    </form>
    Coming and going...
    Highers are getting the better of me

  5. #5
    Join Date
    Jan 2008
    Posts
    287
    Tokens
    0

    Default

    Use CSS for the option tag, put a background on it, define the height, and put some padding on it

  6. #6
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    No i mean i want to put images in the option form for you to select one so have an image instead of text
    Looking for a good desiner to design a social networking template.

    PM me.

  7. #7
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Thats what Caleb said.

  8. #8
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Thats what Caleb said.
    Yeah, it would be like:
    In your css, create a new class, ex.

    CSS
    Code:
    .option_1{
    background-image: url(path/to/img.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    
    .option_2{
    background-image: url(path/to/img_2.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    
    .option_3{
    background-image: url(path/to/img_3.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    HTML
    Code:
    <form>
    <select name="imgselect">
    <option class="option_1"></option>
    <option class="option_2"></option>
    <option class="option_3"></option>
    </select>
    </form>
    (i think :p)

  9. #9
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Thats what Caleb said.
    I thought he mean decorating it

    Quote Originally Posted by [oli] View Post
    Yeah, it would be like:
    In your css, create a new class, ex.

    CSS
    Code:
    .option_1{
    background-image: url(path/to/img.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    
    .option_2{
    background-image: url(path/to/img_2.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    
    .option_3{
    background-image: url(path/to/img_3.png);
    background-repeat: no-repeat;
    width: ??px;
    height: ??px;
    }
    HTML
    Code:
    <form>
    <select name="imgselect">
    <option class="option_1"></option>
    <option class="option_2"></option>
    <option class="option_3"></option>
    </select>
    </form>
    (i think :p)
    I have javascript in my <img> tags so that when the image is clicked it goes to the textarea..

    Can i still do that?
    Looking for a good desiner to design a social networking template.

    PM me.

  10. #10
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by Ini View Post
    I thought he mean decorating it



    I have javascript in my <img> tags so that when the image is clicked it goes to the textarea..

    Can i still do that?

    <option class="option_3" onclick="dothis();">

    just place it on ur option

Page 1 of 2 12 LastLast

Posting Permissions

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