I have the following CSS where an image 'vote_up' is a background image. I'd like to alter the javascript to swap images on rollover.
The JS code below makes a call to database. Is there a way to call a mouseover function with background images? If not can you provide another solution?
CSS
<style type='text/css'>
body {
background...
Hi,
I'm trying to show multiple polygons as SVG image on a div using Raphael. Although, I've set up the size for the div Raphael gets as an argument to create the paper object, the size of the div element is not respected and the image is drawn outside of the div boundaries (which I somehow understand, as the polygon coordinates go beyo...
Hello,
I am working on dynamic page where height of the page is concern.
So, What I want is if height of <div id="a"> < 300px , Then only show new <div id="b">
How can I achieve this ?
Thanks.
Mandar
...
hi,
i have a uitableview which will load a uiwebview with a long page (static page inside the app). I want to know whether it is possible to move to the center of the page on clicking the cell in the uitableview. Something very similar to using hyperlinks to point to different location of same HTML page.
...
Is it possible to avoid JavaScript
these days for small business
websites, blogs etc ?
and is it wise idea?
What are things which cannot be done
via server side language and only
possible with JavaScript? Or is
everything possible except
animation with server side languages which is possible with
JavaScript?
What are reasons in favor o...
What are best practices and tips to use JavaScript without losing the site's Accessibility, usability and SEO, and site's content if JavaScript is disabled but still keeping site usability for JavaScript enabled users?
In what scenarios we should avoid full dependency on JavaScript?
...
Hello,
i bought the "Resizable Mp3 Player 03 AS2" and i want to play my different music tracks in the player.
I have Links like:
HTML Code:
Track1
...
How can i play the different file in the player with Javascript ?
My idea was this
HTML Code:
var flashvars = {};
var params = {};
var attributes = {};
function play_file(new_data)...
On page load, using jQuery how can I select all check boxes in a specific div automatically?
...
I'm trying to figure out which is the safest strategy for protecting my (file-based) SQLite database from corruption (in this case, I'm working with Adobe Air, but this could apply to any webkit browser that uses SQLite, including Mobile Safari).
I'm thinking about creating a database connection, keeping it around for only maybe 5 or 1...
Here's what I need in what I guess must be the right order:
The contents of each section of the string contained in square brackets (which each must follow after the rest of the original string) need to be extracted out and stored, and the original string returned without them.
If there is a recognized string followed by a colon at the...
why doesnt this work?
//I removed the 'for loops' for a second and then the script does something, what wrong with the loops?//
var openWindows= new Array[50]();
function resize(x){
//changed boolean to var
var open = false;
for(var i = 0; i < openWindows.length; i++){
if(openWindows[i] == x){
open = true;
openWindows...
hi.
i generate some html content dynamically like
var content = "<head><title>testtitle</title></head><body>testbody</body>";
then i get myself a new tab with about:blank, and now i want to display my generated html in this tab. if the tab's contentDocument is newDoc, i thought i just do
newDoc.documentElement.innerHTML = content;
...
Hello, my most trusted programmers and thank for all the help!
I grab rss-feed by jquery-ajax using php curl. It's loading very nicely directly on the page. However, I would like to translate the text, that is now html, title within h2 and text within p, wrapped by a div-container.
Google's api-script for translation doesn't seem to ru...
Possible Duplicate:
Which Javascript framework (jQuery vs Dojo vs )?
There are many Javascript Frameworks over the Web Development World.
Among them most people choose JQuery but I am really complex which one to choose for the following reasons:
Accessibility
Input form widgets & validation
Back button support (or) history...
I had a list <li> where the content inside li should get bold when it is clicked. For that i used the following code
HTML
<ul class="tabs">
<li><a href="#tab1" style="padding-left:5px;">All Sectors</a></li>
<li><a href="#tab2">Information Technology</a></li>
<li><a href="#tab3">Manufacturing</a></li>
<...
I am attempting to create a simple texteditor with HTML5 contenteditable on a div tag. As you know, selected text is handled quite differently in IE.
this.retrieveAnchorNode = function() {
var anchorNode;
if (document.selection)
anchorNode = document.selection.createRange().parentElement();
else if (docume...
How can I check if the user's current browser is Safari 5?
Update
We have a check on our site that displays a "Browser not supported" message if the user is using an older browser. Currently our error is showing up for the latest Safari and it shouldn't be.
...
I have noticed that there doesn’t appear to be a clear explanation of what is the "this" keyword and how it is correctly (and incorrectly used) in JavaScript on the stackoverflow site.
I have witnessed some very strange behaviour with it and have failed to understand why it has occurred.
Would anyone care to explain to me how “this” w...
Is it possible somehow via a Chrome extension to remove most of the window border content (like address bar, tab bar)?
I'd like to have some standalone windows with some webpages inside but without any space wasted.
My purpose is for example to build a Chrome extension which strips everything out from the side except the Flash/video/wh...
I need to find which id numbers are missing inside s.data compared to users.
Is there a better(smaller code) way to compare?
Thanks ;)
if(users.length != undefined)
{
for(y=0;y<users.length;y++)
{
var left = true;
for(y2=0;y2<s.data.length;y2++)
{
if(users[y].client_id==s.data[y2].client_i...