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

  • An Über List of User-agent Strings | http://t.co/PLrwU9vj #websec #infosec
  • Coffee. Scone. Way too much work due soon. Life is wonderful.
  • "My first wife died of mushroom poisoning. My second wife died of a concussion. She wouldn't eat her mushrooms."
  • Source2URL: Parse Source Code Directory, Send URLs Through Proxy | http://t.co/Se7cWxNP #websec #infosec
  • The 5 Why's Method of Discovering Root Causes | Harvard Business Review http://t.co/mGcbdL0L #productivity
  • A List of Source Code Analyzers | http://t.co/67YbEDJo #nist #appsec

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs