Markimago : Anchor Bookmark Supported!

|
Markimago is very useful for images, but how about anchor? I think, we will adding more links to our website rather than images, so now, Markimago already support links bookmark, so same as images, we only write the url once, then we can use it twice. Pretty amazing, right?



When you want to adding a bookmark for any website link, you just do the same as you do when you want to add a image. It's really the same, but if you really not understand, here's the code :

// Make the bookmarks

Markimago.createMarker({
                        // image url                        
                        "lake" : "sample/lake.jpg",


                        // website url
                        "example" : "http://www.example.com/"                  
                        });


// Apply bookmark for all img and a elements.
Markimago.mark(); 


Then, lets apply it!
<img name='lake' />

<a name='example'>Example Website</a>

Easy, man!


Github : https://github.com/nmimagine/Markimago/

0 komentar:

Posting Komentar