text:
Q: HTML5 How can I use mouse event(over, click) to drawn component I want to below funtion.

*

*add to mouse event(over, click) drawn component

*

*lineto

*mouse over or click drawn line, display message

*one more want.. possible to event run IE11, Chrome, Safari...
[original code.]
        <%@ page import="java.util.*" %>
        <%@ page import="java.sql.*" %>
        <!doctype html>
        <html>

        <head>
            <link rel="stylesheet" type="text/css" media="all" href="../css/style.css" /> <!-- reset css -->
            <script src="../js/jquery.min.js"></script>
            <script src="../js/jspdf.debug.js"></script>

        <style>
            body{ background-color: white; }
            canvas{border:1px solid red;}
                html, body {
                   width: 100%;
                   height: 100%;
                   margin:0px 0px 0px 10px;
                }
            footer{display:block; border-top:1px solid orange;margin:10px;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif; font-weight:bold;}
            article{display:block; font-family:Georgia,"Times New Roman",Times, serif; margin:5px;}
        </style>

        <script>
        $(document).ready(function()
        {
         $('body').hide().fadeIn(1000);
        });
        </script>

        <%
                int chrcount = 10; //servlet return
        %>
            <img id="canvasImg">

            <canvas id="canvas" width="<%=chrcount*200%>" height="2000" style="display:none;"></canvas>

        <script type="text/javascript">

                var canvas=document.getElementById("canvas");
                var ctx=canvas.getContext("2d");

                var start_position = 100;
                var end_position = 200;
                var RGBcolor = [];

                var canvasWidth = canvas.width;
                var canvasHeight = canvas.height;

        <%
            DBManagerPepper dbmanagerpepper = new DBManagerPepper();

            String chrLength_sql = null;
            String bpLength_sql = null;
            String alignment_sql = null;
            String cMLength_sql = null;
            String AllChr_sql = null;

            String organismCode = request.getParameter("organismCode") ; //servlet return

            int canvasWidth = chrcount * 500;
                //cM length
                AllChr_sql = "select distinct ch_no from geneticmap_info_t";

                try{
                    dbmanagerpepper.rs=dbmanagerpepper.stmt.executeQuery(AllChr_sql);
                }catch(Exception e){
                    System.out.println(e);
                }

                while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) {

                    int R = (int)(Math.random()*256);
                    int G = (int)(Math.random()*256);
                    int B= (int)(Math.random()*256);
                    String RGB = R+","+G+","+B;
                    //System.out.println(RGB);
                    //RGBcolor.put(dbmanagerpepper.rs.getString("ch_no"), RGB);

                    %>
                        RGBcolor.push({ch_no:'<%=dbmanagerpepper.rs.getString("ch_no")%>',rgb:'<%=RGB%>'});
                    <%

                }

        %>

                //alert(RGBcolor[1].rgb);

        <%
            for(int i=1;i<chrcount;i++){
                %>
                    var i = <%=i%>
                <%
                //cM length
                cMLength_sql = "select max(position) as max_cM_position from geneticmap_info_t where  organismcode='"+organismCode+"' and ch_no='"+i+"'";

                try{
                    dbmanagerpepper.rs=dbmanagerpepper.stmt.executeQuery(cMLength_sql);
                }catch(Exception e){
                    System.out.println(e);
                }

                %>

                var cM_length = <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %><%=dbmanagerpepper.rs.getInt("max_cM_position")%><% } %>;

                <%

                //bp length
                bpLength_sql = "select max(cov_position) as max_cov_position  from physicalmap_info_t where organismcode='"+organismCode+"' and lg_no='"+i+"'";

                try{
                    dbmanagerpepper.rs=dbmanagerpepper.stmt.executeQuery(bpLength_sql);
                }catch(Exception e){
                    System.out.println(e);
                }

                %>
                    var bp_length = <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %><%=dbmanagerpepper.rs.getInt("max_cov_position")%><% } %>;

                <%
                //align(cM-bp)
                //alignment_sql = "select a.markername as physicalmap_markername, a.lg_no as physicalmap_lg_no, a.cov_position as physicalmap_cov_position, b.ch_no as geneticmap_ch_no, b.position as geneticmap_position from physicalmap_info_t a, geneticmap_info_t b where a.lg_no='"+i+"' and a.organismcode='"+organismCode+"' and a.organismcode=b.organismcode and a.lg_no=b.ch_no and a.markername=b.markername order by a.markerseq;";

                alignment_sql = "select a.markername as physicalmap_markername, a.lg_no as physicalmap_lg_no, a.cov_position as physicalmap_cov_position, b.ch_no as geneticmap_ch_no, b.position as geneticmap_position from physicalmap_info_t a, geneticmap_info_t b where a.lg_no='"+i+"' and a.organismcode='"+organismCode+"' and a.organismcode=b.organismcode and a.markername=b.markername order by a.markerseq;";

                try{
                    dbmanagerpepper.rs=dbmanagerpepper.stmt.executeQuery(alignment_sql);
                }catch(Exception e){
                    System.out.println(e);
                }
                %>

                var physicalmap_markername = [
                <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %>
                   '<%=dbmanagerpepper.rs.getString("physicalmap_markername")%>',
                <% } %>
                ];
                <%
                    dbmanagerpepper.rs.beforeFirst();
                %>

                var physicalmap_lg_no = [
                <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %>
                   <%=dbmanagerpepper.rs.getInt("physicalmap_lg_no")%>,
                <% } %>
                ];
                <%
                    dbmanagerpepper.rs.beforeFirst();
                %>

                var physicalmap_cov_position = [
                <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %>
                   <%=dbmanagerpepper.rs.getInt("physicalmap_cov_position")%>,
                <% } %>
                ];
                <%
                    dbmanagerpepper.rs.beforeFirst();
                %>

                var geneticmap_ch_no = [
                <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %>
                   <%=dbmanagerpepper.rs.getInt("geneticmap_ch_no")%>,
                <% } %>
                ];
                <%
                    dbmanagerpepper.rs.beforeFirst();
                %>

                var geneticmap_position = [
                <% while (dbmanagerpepper.rs!=null && dbmanagerpepper.rs.next()) { %>
                   <%=dbmanagerpepper.rs.getInt("geneticmap_position")%>,
                <% } %>
                ];
                <%
                    dbmanagerpepper.rs.beforeFirst();
                %>

                  orfSize = canvasWidth*(<%=chrcount*5%>);

                  ctx.lineWidth=12;
                  var offset = 2500000;
                  var start=offset;
                  var end=bp_length+offset;

                  ctx.beginPath();

                  ctx.fillStyle = "rgb("+RGBcolor[i-1].rgb+")";
                  ctx.font = "bold 12pt Courier";
                  ctx.textBaseline = 'Top';
                  ctx.fillText("Chr"+i,start_position-30,20);

                  ctx.strokeStyle ="rgb("+RGBcolor[i-1].rgb+")";
                  ctx.moveTo(start_position,start/orfSize);
                  ctx.lineTo(start_position,end/orfSize);

                  ctx.stroke();

                  var end=cM_length+offset;

                  ctx.beginPath();
                  ctx.strokeStyle ='rgb(1,176,241)';

                  ctx.moveTo(end_position,start/orfSize);
                  ctx.lineTo(end_position,end/orfSize);

                  ctx.stroke();

                  ctx.fillStyle = 'rgb(144,167,198)';
                  ctx.font = "bold 12pt Courier";
                  ctx.textBaseline = 'Top';
                  ctx.fillText("cM",end_position,end/orfSize+10);

                  var count=1;

                  for( k=0;k<physicalmap_lg_no.length;k++){

                      var start=physicalmap_cov_position[k]+offset;
                      var end=geneticmap_position[k]+offset;

                      ctx.beginPath();

                        if(physicalmap_lg_no[k] == geneticmap_ch_no[k]){
                          ctx.lineWidth = 0.7;
                          ctx.strokeStyle ="rgb(144,167,198)";
                          ctx.moveTo(start_position+5,start/orfSize);
                          ctx.lineTo(start_position+95,end/orfSize);
                          ctx.stroke();
                        }

                        else{

                            if(geneticmap_ch_no[k] != i){
                              ctx.strokeStyle ="rgb("+RGBcolor[geneticmap_ch_no[k]-1].rgb+")";
                              ctx.lineWidth=13;
                              ctx.moveTo(start_position-15,start/orfSize);
                              ctx.lineTo(start_position-15,(start+100000)/orfSize);
                              ctx.stroke();

                            }

                       }

                      count = count+1;
                  }

                  for( k=0;k<physicalmap_lg_no.length;k++){

                      var start=physicalmap_cov_position[k]+offset;
                      var end=geneticmap_position[k]+offset;

                      var start_position_align = 100;
                      var end_position_align = 200;

                      ctx.beginPath();

                        if(physicalmap_lg_no[k] == geneticmap_ch_no[k]){
                          ctx.lineWidth = 0.7;
                          ctx.strokeStyle ="rgb(144,167,198)";
                          ctx.moveTo(start_position+5,start/orfSize);
                          ctx.lineTo(start_position+95,end/orfSize);
                          ctx.stroke();
                        }

                        else{

                            if(geneticmap_ch_no[k] != i){

                              start_position_align = start_position_align+((geneticmap_ch_no[k]-1)*200);
                              end_position_align = end_position_align+((geneticmap_ch_no[k]-1)*200);

                              //alert(((geneticmap_ch_no[k]-1)*200));

                              ctx.strokeStyle ="rgb("+RGBcolor[physicalmap_lg_no[k]-1].rgb+")";
                              ctx.lineWidth=13;
                              ctx.moveTo(end_position_align+15,end/orfSize);
                              ctx.lineTo(end_position_align+15,(end+100000)/orfSize);
                              ctx.stroke();
                            }

                       }

                      count = count+1;
                  }

                start_position = start_position+200;
                end_position = end_position+200;

                <%

            }

        %>
              // save canvas image as data url (png format by default)
              var dataURL = canvas.toDataURL();

              // set canvasImg image src to dataURL
              // so it can be saved as an image
              document.getElementById('canvasImg').src = dataURL;
        </script>

        </html>


text:
University of South Australia, Adelaide, Signage
Higher Calling
Emerystudio designs signs for the dramatic new "front door" of the University of South Australia.
The Hawke Building, named after former Australian prime minister Robert James Lee Hawke, is the new "front door" of the University of South Australia in Adelaide, one of the country's top universities. It houses not only the university chancellor's offices, but the Anne & Gordon Samstung Museum of Art and the Bob Hawke Prime Ministerial Library and Centre.
Read more about University of South Australia, Adelaide, Signage
Drive By Installation
Electroland's LED installation comments on Los Angeles' love affair with cars and movies.
Los Angeles is known for its obsessions, most notably with cars and movies. Drive By, a 240-ft.-long by 6-ft.-high LED installation in North Hollywood, brings the two together in a dynamic piece of public art that responds to traffic levels and recreates great moments from classic Hollywood films.
Read more about Drive By Installation
Teknion 2007 IIDEX Exhibit
Teknion's tradeshow exhibit sends a compelling message about its sustainability commitment and its new products—in that order.
Read more about Teknion 2007 IIDEX Exhibit
NeoCon East Sustainability Exhibit
Beauty of the Waste
Gensler's Baltimore team reveals the ironic beauty of a resource we routinely squander.
When the Merchandise Mart asked Gensler's Baltimore office to create a sustainability-focused experience for NeoCon East, Jim Camp and his team took it personally.
The exhibit's goal was to promote dialogue around sustainability and offer visitors a point of pause and inspiration in the generic Baltimore Convention Center lobby before they entered NeoCon.
Read more about NeoCon East Sustainability Exhibit
The New York Times Building Facade
At the Renzo Piano-designed New York Times Building, Pentagram melds signage, architecture, and brand identity for Times Squares' founding tenant.
When Pentagram was brought on to conceive the façade identity for The New York Times Building, it was obvious that signage should be integrated with the building's innovative brise soleil, a curtain wall of white ceramic rods designed to control light and heat intake.
Read more about The New York Times Building Facade
The ethos of San Francisco's de Young Museum is embedded in its copper skin and in architecturally integrated donor recognition.
San Francisco's de Young Museum had been closed to the public since 2000 after being damaged in the 1989 Loma Prieta earthquake. After two bond issues for its reconstruction failed, it looked as though the museum might never reopen.
Read more about de Young Museum
A conceptual design approach allows Studio/lab to shine a light on the Spertus Institute's educational mission.
Admit to Marcia Lausen that you don't know much about environmental graphic design, and the Chicago-based principal of Studio/lab responds unexpectedly, "That's okay, we don't know much about it either."
Read more about Spertus Institute of Jewish Studies
Zeche Zollverein Heritage Site
Mining the Past
A restrained graphics program helps preserve the legacy of one of Germany's cultural treasures.
Its Bauhaus-style shaft has been closed and its coking plant smokeless for decades, but the legacy of the Zollverein Coal Mine Industrial Complex lives on in Essen, Germany.
Read more about Zeche Zollverein Heritage Site
One Day Poem Pavilion
A "slow media" installation allows visitors to interact with light, shadow, words, and the pull of the earth.
Time is an artificial construct, created by humans to meet our needs. Consumed as we are with how quickly it passes—and despite our determination to make it just another commodity—time defies our efforts to control it.
Read more about One Day Poem Pavilion
Honor Award
de Young Museum Signage and Environmental Graphics
San Francisco's de Young Museum had been closed to the public since 2000 after being damaged in the 1989 Loma Prieta earthquake. Designed by Fong & Chan and Herzog & de Meuron architects, it reopened in September 2005 on the same site in Golden Gate Park.
Environmental graphics were inspired by the building's unique copper skin, a quilt of 7,200 panels that were punched and embossed to suggest light filtering through a canopy of leafy trees.
Debra Nichols Design
Jan McCarthy
Director of Environmental Graphic Design
Jamie Swindon
Adrienne Rehm
Don Finke
Experience Design Lead
Leonor Montes de Oca
Co-Founder / Creative Executive Director
Rogerio Varela

redpajama_set_name: RedPajamaCommonCrawl