Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed 8 years
Tag: html
How do I style HTML5 canvas text to be bold and/or italic?
I’m printing text to a canvas in a pretty straight forward way: But how can I change the text to bold, italic or both? Any suggestions to fix that simple example? Answer From the MDN documentation on CanvasRenderingContext2D.font: The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text. This string uses the
How to load images dynamically (or lazily) when users scrolls them into view
I’ve noticed this in numerous “modern” websites (e.g. facebook and google image search) where the images below the fold load only when user scrolls down the page enough to bring them inside the visible viewport region (upon view source, the page shows X number of <img> tags but they are not fetched from the server straight away). What is this
Convert Data URI to File then append to FormData
I’ve been trying to re-implement an HTML5 image uploader like the one on the Mozilla Hacks site, but that works with WebKit browsers. Part of the task is to extract an image file from the canvas object and append it to a FormData object for upload. The issue is that while canvas has the toDataURL function to return a representation
How can I add “href” attribute to a link dynamically using JavaScript?
How can I add the href attribute to a link dynamically using JavaScript? I basically want to add a href attribute to <a></a> dynamically (i.e. when the user clicks on specific image in the website). So from: I need to go to: Answer
How do I remove tinyMCE and then re-add it?
I am trying to add the tinyMCE editor to my page, remove it, then add it again but am getting errors. When I run Part A, then Part B, Than Part A again I get the error: Part A Part B Edit: Below is the full JavaScript function. The first time through it opens the dialog and works, the contents
Extracting single frames from an animated GIF to canvas
I need to load all the frames of an animated GIF to an HTML5 canvas. Please note, I don’t want to “play” the animated (someone asked this before), all I want is to extract all the frames to use them as single images. Answer Sorry, the short answer is that JavaScript has no way of controlling the current frame of
Search a table looking for labels
I am trying to search a table looking for all the labels in that table. When the JavaScript function finds a label I want to set it’s visibility to false. My html code looks like this: My function is called on a drop down lists onchange event which then passes the table that holds all the labels I want to
Adding to browser context menu?
Is it possible to add item to the default browser right button click menu? Answer One option is to replace the context menu with your own JavaScript triggered equivalent. Firefox implemented the menu element where you can add to the existing context menu. It was also implemented in Chrome behind a flag. Unfortunately this feature has been removed from the
CSS2 cursor not displaying “hand”
I’m following the standard of W3C here http://www.w3.org/TR/CSS2/ui.html and here http://www.quirksmode.org/css/cursor.html#note. However, the element isn’t displayed the hand when mouseover. Please help. When viewing with IE9 and mouseover, it doesn’t change the cursor into the “hand”, but it’s just the regular arrow instead. Please advise. Thanks! Answer It should be cursor: pointer; alone because hand is a proprietary value only