Need some help > href class

Discussion in 'HTML & Website Design' started by fluor, May 17, 2010.

  1. #1
    It is possible to put same class to every link on a page. But i don`t want to put every link a class cause page is changing every minute(some autoupdate...).

    EDIT,
    <a href="../index.htm"
    onclick="return hs.htmlExpand(this, { objectType: 'ajax'} )">
    click here.
    </a>
    Something like this...Bold part need to show after <a href="../index.htm", but on every link on page..

    Thanks for future help!

    Regards,
    Fluor
     
    fluor, May 17, 2010 IP
  2. www.CaseyEquip.com

    www.CaseyEquip.com Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1) if it is php page, put it in the page that generate that html page.
    2) if it is template based, put the class in the template, for example in .tpl file, but it depends on CMS that you are using
     
    www.CaseyEquip.com, May 17, 2010 IP
  3. fluor

    fluor Active Member

    Messages:
    571
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #3
    I know, but i can`t put put, isn`t php, it`s javascript and i don`t understand it very well to put script
    Any CSS tip to make this?

    Regards,
    Fluor
     
    fluor, May 17, 2010 IP
  4. designmonkey

    designmonkey Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just want to clear something, do you want to make this bold onclick="return hs.htmlExpand(this, { objectType: 'ajax'} )" and NOT the 'click here.' ?

    If it is, then AFAIK there's no css tricks to make that. since the onclick is part of the Anchor (<a>) tag properties, not the content of the A .
    Though i'm not sure why you want it bold, since its javascript prop .. and will not be displayed on the browser, and css is to deal with presentation (things that displayed on the screen,print, etc ).

    If you want to make the 'click here.' to be bold instead just define the anchor tag properties.
    i.e
    a{
    font-weight:bold;
    } /*this will make every anchor bold on everypage where the css applied, unless its overrided by other css style*/

    or,
    #wrap a{
    font-weight:bold;
    } /*this will make every anchor inside the #wrap container bold.
     
    designmonkey, May 17, 2010 IP
  5. fluor

    fluor Active Member

    Messages:
    571
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #5

    I want that bold to be a on every link.

    I think no possible, thanks anyway:)

    Regards,
    Fluor
     
    fluor, May 18, 2010 IP
  6. designmonkey

    designmonkey Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ah, i see now.. i think i misunderstood your question.

    Ok, if you want to put that js class on everylink, you'll need to change the js. No css trick could do that.

    sorry for the misunderstanding earlier :)
     
    designmonkey, May 18, 2010 IP
    fluor likes this.
  7. www.CaseyEquip.com

    www.CaseyEquip.com Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    designmonkey is right, you need to change js file to make it work.
    Hire someone to do it for you, you can find people here cheap.
     
    www.CaseyEquip.com, May 18, 2010 IP