Fish eye on text : Fisheye « Dojo toolkit « JavaScript DHTML






Fish eye on text

 

<html>
  <head>
    <link rel="StyleSheet" type="text/css"
      href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojox.widget.FisheyeLite");
      
      dojo.addOnLoad(function(){
        dojo.query("b", dojo.byId("my")).forEach(function(n){
          new dojox.widget.FisheyeLite({
            properties:{
              fontSize:1.50,
              letterSpacing:2.00
            }
        },n);
        }).connect("onclick",dojo,"stopEvent");
      });
    </script>
  </head>
  <body class="tundra">
      <p id="my">
      text <b>text</b>another text<b>text</b>
      </p>
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Create fish eye list