5 Replies - 555 Views - Last Post: 28 January 2012 - 07:56 PM Rate Topic: -----

Topic Sponsor:

#1 lovelyxalice  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 32
  • Joined: 19-August 11

How to program links into color options?

Posted 27 January 2012 - 08:53 PM

The color options
"<option style="background-color: purple; color: rgb(255, 255, 255);" value="purple">purple</option>"
for example on purple I would like it to show purple shirts so it will go to the page with purple t-shirts

They are right next to a search engine I believe this css or html my friend was trying to explain the code to me but he left for vacation. I'd like to figure this out before he comes back so I can show him I learned something :)
I'm not sure exactly how this would work. I searched rgb option links css and html and I couldn't find anything talking about it.
Personally I dont think I'm good at all using search engine's, so I don't know.


I was thinking something like href= in it but that is for html and It's for photos not codes.

Is This A Good Question/Topic? 0
  • +

Replies To: How to program links into color options?

#2 modi123_1  Icon User is online

  • Suiter #2
  • member icon


Reputation: 3549
  • View blog
  • Posts: 14,974
  • Joined: 12-June 08

Re: How to program links into color options?

Posted 27 January 2012 - 09:12 PM

You could wrap the 'a href' with a font color tag...

http://www.w3schools...gs/tag_font.asp
Was This Post Helpful? 0
  • +
  • -

#3 lovelyxalice  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 32
  • Joined: 19-August 11

Re: How to program links into color options?

Posted 28 January 2012 - 06:53 PM

View Postmodi123_1, on 28 January 2012 - 04:12 AM, said:

You could wrap the 'a href' with a font color tag...

http://www.w3schools...gs/tag_font.asp

There is no "href" in the html code.

I want the drop down menu to go to a link and I don't want the search bar to go to a link when you try to type in it because I want it to wait till someone is finished typing!
href is ONLY for images,Isn't that correct?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suiter #2
  • member icon


Reputation: 3549
  • View blog
  • Posts: 14,974
  • Joined: 12-June 08

Re: How to program links into color options?

Posted 28 January 2012 - 07:30 PM

Quote

href is ONLY for images,Isn't that correct?


No... 'a href' is for links.. it's a hyperlink reference. 'img src' is for images.

If you could explain better of what you are doing that would be grand.. I might have a chance at helping. What/where ever that link in the OP went to isn't helping me understand.
Was This Post Helpful? 0
  • +
  • -

#5 lovelyxalice  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 32
  • Joined: 19-August 11

Re: How to program links into color options?

Posted 28 January 2012 - 07:52 PM

View Postmodi123_1, on 29 January 2012 - 02:30 AM, said:

Quote

href is ONLY for images,Isn't that correct?


No... 'a href' is for links.. it's a hyperlink reference. 'img src' is for images.

If you could explain better of what you are doing that would be grand.. I might have a chance at helping. What/where ever that link in the OP went to isn't helping me understand.


No I figured it out now, I'm supposed to be doing a PHP file.
I noticed when I was re-reading what my friend helped me type up. :)
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • 2 girls, 1 club
  • member icon

Reputation: 3050
  • View blog
  • Posts: 22,957
  • Joined: 10-May 07

Re: How to program links into color options?

Posted 28 January 2012 - 07:56 PM

Between html & php, I'm not sure why this is under 'other languages'.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1