Creating Submission Image Links For Digg, Reddit, and Del.icio.us

By Daniel Miessler on October 14th, 2006: Tagged as Blogging | Programming | Social
  • joat

    Those same graphics work well in the links bar for Firefox. Drag and drop a site onto the toolbar, click on the link to load the page and the ico, right click on the link, select “Properties”, clear the “Name”.

  • joat

    Those same graphics work well in the links bar for Firefox. Drag and drop a site onto the toolbar, click on the link to load the page and the ico, right click on the link, select “Properties”, clear the “Name”.

  • http://slashback.org/ Tim

    I’d like to point something out:

    Putting a javascript action as an “href” for a link is generally bad. If I didn’t have javascript enabled, the link would do nothing.

    Here’s what I’ve recently learned (I left out the less/greater than signs so WordPress doesn’t screw it up)

    bad: a href=”javascript:blah”

    acceptable: a href=”someurl” onClick=”javascript:blah”

    Good: a href=”someurl” class=”special”

    In that last example, you’d use a DOM script to add in the onClick event handler for the link (get all elements by tag “a” and filter by attribute “class” equals “special”). For extra encapsulation, you should keep the DOM script in a separate file.

  • http://slashback.org Tim

    I’d like to point something out:

    Putting a javascript action as an “href” for a link is generally bad. If I didn’t have javascript enabled, the link would do nothing.

    Here’s what I’ve recently learned (I left out the less/greater than signs so WordPress doesn’t screw it up)

    bad: a href=”javascript:blah”

    acceptable: a href=”someurl” onClick=”javascript:blah”

    Good: a href=”someurl” class=”special”

    In that last example, you’d use a DOM script to add in the onClick event handler for the link (get all elements by tag “a” and filter by attribute “class” equals “special”). For extra encapsulation, you should keep the DOM script in a separate file.

  • http://slashback.org/ Tim

    Here‘s a link to a presentation for a DOM scripting session I went to in Rock Eagle last week that may shed some light on to what I’m trying to say.

  • http://slashback.org Tim

    Here‘s a link to a presentation for a DOM scripting session I went to in Rock Eagle last week that may shed some light on to what I’m trying to say.

  • http://dmiessler.com/ Daniel Miessler

    True, if you didn’t have Javascript installed…but most everyone does, so I think it’s ok. Good information, though, thanks; I’ll definitely check it out…

  • http://dmiessler.com Daniel Miessler

    True, if you didn’t have Javascript installed…but most everyone does, so I think it’s ok. Good information, though, thanks; I’ll definitely check it out…


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

  • Motivational Speaking in a World Without Free Will | http://t.co/fqAcoQdu #philosophy
  • SSD back in MBP. Happy again. RPMs only belong in cars.
  • Reminder: If you don't know SQL Injection it's because you don't know SQL. Once you understand the technology the security is obvious.
  • @simonsarris Can't tell if you're agreeing with me or not.
  • Is Trojan really a good name for a condom company? The original was let in trustingly, released its dangerous payload, and chaos ensued.

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs