WEB Javascript help por favor?

Discussion in 'OT Technology' started by m3s3lf, Mar 29, 2010.

  1. m3s3lf

    m3s3lf *Jeep Crew*

    Joined:
    Oct 4, 2001
    Messages:
    5,460
    Likes Received:
    0
    Location:
    Sacramento, CA
    I am just not able to fully wrap my head around this. I'm trying to use this Zero Clipboard script to copy text to the clipboard (the new version of flash makes this a PITA).

    I want my two buttons (of equal size): vbbutton.gif and htmlbutton.gif to copy $vbcode and $htmlcode to the clipboard respectively. This is my code so far:

    Code:
        function slicky_links($dirname, $filename, $page) {
    
            $imgurl = "http://www.site.net/gallery.php?cmd=midsize&gallery=" . urlencode($dirname) . "&image=" . urlencode($filename); $linkurl = "http://www.bsfab.net/gallery.php?gallery=" . urlencode($dirname) . "&page=" . urlencode($page); 
    
        $vbcode = '. $linkurl . '?img?' . $imgurl . '/img?/url?'; $htmlcode = "<a href=\\'$linkurl\\'><img src=\\'$imgurl\\' alt=\\'\\' /></a>"; 
    
        echo "</br><div id=\"clipboard\" style=\"display:inline; padding-top:1px;\"><img src=\"vbbutton.gif\"></div>"; echo " - "; echo "<div id=\"clipboard\" style=\"display:inline; padding-top:1px; \"><img src=\"htmlbutton.gif\"></div>"; 
    
        } 
    I've got this at another place in the page:

    Code:
    <script type="text/javascript" src="ZeroClipboard.js"></script>
    Any advice would be appreciated! I'm going to try to dig up some other examples I can look at.
     
  2. m3s3lf

    m3s3lf *Jeep Crew*

    Joined:
    Oct 4, 2001
    Messages:
    5,460
    Likes Received:
    0
    Location:
    Sacramento, CA
    Yeah, and that was enough to break my old system [​IMG]
     
  3. nikitenko.p

    nikitenko.p New Member

    Joined:
    Dec 13, 2009
    Messages:
    1
    Likes Received:
    0
    Location:
    Ðîññèÿ
    Javascript help por favor

    Hi
    i have a simple question as i am new to javascript.
    basically i have a html table with many rows.
    depending on which row is clicked i want to change the innerHTML of a div. i know how to change the innerHTMl, but i dont know how to find the event target or something like that.

    can anyone help me out thanks?
     
  4. Swerve

    Swerve OT Supporter

    Joined:
    Feb 20, 2005
    Messages:
    3,179
    Likes Received:
    3
    Thread hijackers require 8 screens or more.
     

Share This Page