I have a div with a specific width and height. And a smaller image with the same width but much less height. How could I
Position the small image to the inside top of the big div (but still all the small image to be visible in it)
Animate the small image from the inside top of the big div to the inside bottom (and again, still k...
This is a newbie question: Can the following HTML/JavaScript code be further simplified by just keeping the DIV to be updated + the INPUT button?
<div id="main_section" name="main_section">
<div id="update_div">Old stuff</div>
<input type="button" value="Update" id="update_button"/>
</div>
<script type="text/javascript" src="/j...
Hi
Does anyone know a website where you can paste some code and it generates highlighted source code? As HTML, like Geshi, with span tags with color styles on them?
...
I have a very large RSS (which may be 1M), so when I read it, it takes alot of time.
If I set the number of items read, example: 4, I think this will not ensure that I read all the data which updated since last time I read it (and I will lose some items),
What can I do?
I am using Google AJAX Feed Api to read the RSS/Atom feed.
updat...
glBegin/glEnd and per-vertex drawing with glVertex I can understand that using arrays can be faster.
But where is glLoadIdentity? glMultMatrix? glTranslate? glRotate?
Why do we have to handle all the matrix stuff ourselves?
...
Hello everyone.
$('#note').click({
$('#trigger').remove();
$('#info').slideDown(4000, function(){
$(this).fadeOut(40000);
});
});
What I'm trying to do here is obvious. Sadly, when I try this piece of code, FireBug throws the following error: missing : after property id.
After trying to debug for some time, I saw...
I am developing an iPhone/ipad app using HTML,CSS and JavaScript that runs on an embedded webkit browser. There's an image in the page that's attached to the ontouchstart event handler. Testing on a real iPad shows that whenever I touch the image on the page, a little question icon pops up, which I do not want.
What is this little que...
I was looking at google.com source and saw:
<!doctype html><html onmousemove="google&&google.fade&&google.fade(event)">
I did not know the HTML tag could accept event listeners. What is the difference of placing the event listener on the HTML tag versus the BODY tag? Is there any difference in the event bubbling?
...
<html>
<head>
<style type="text/css">
body {
background-color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
text-align: center;
color: #FFFFFF;
}
</style>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
function sleep(ms)
...
So ideally here is what I am trying to accomplish (keep in mind I am a beginner, so bear with me):
Creating an app that at interval x (let's play with interval x = 15 minutes) a notification pops up prompting the user the take action. So every 15 minutes, take action (so you know, to alert them, this will be a browser flash and a title...
I'm working on a new web app where a large amount of content (text, images, meta-data) is requested via an Ajax request.
No auth or login required for a user to access this.
My concern is that you could easily lookup the data source URL and hit it directly outside the app to get large data. In some ways, if you can do this you could p...
I need to use JavaScript split but I'm useless at regex so what i wanna do is take a text which is CSS like structure eg:
var str = "selector {
width: 100px;
height: 20px;
}
.anything{
margin: 5%;
}";
str.split(/regex goes here/);
Expected output
[
0 = selector{width: 100px; height: 20px;},
1 = .anything{margin: 5%;}
]
...
Hi folks,
I need to synchronize functionality with various animations... unfortunately jQuery queues up ONLY animations of a certain object.
jQuery offers the possibility to add callbacks, but I cannot pass it any external variables.
Here is some code!!! =)
var unicorn_actions = [...];
for( var i=0; i<unicorn_actions.length; i++){
...
this is my code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Feed API - Simple Example</title>
<script type="tex...
I'm looking for a way that I can swap between divs when I hover over table rows and the only solution I've found is that effect when hovering over a list. I really don't understand jquery fully yet so I'm hoping its just a simple change that can be made.
This is the code that I came across for hovering over a list, the only change that...
I am really confused about web application development. I read w3 and apple choose and recommend javascript for developing web apps but i heard that for developing web apps i need to create back-ends with Java. Can I learn html5/css3/javascript and develop a complete webapps by only using those technologies?
Thanks
...
I'm trying to wrap multiple same class divs into a div and to skip divs not with the same class. .wrap doesn't combine them, and .wrapAll throws the non-classed divs underneath. I've been tinkering around with attempts to create an alternate solution but with no avail.
Original
<div class="entry">Content</div>
<div class="entry">Conten...
What I wanted to do is figure out whenever the user is engaged with an INPUT or TEXTAREA element and set a variable flag to true... and set that flag to false immediately after the user is no longer engaged with them (ie. they've clicked out of the INPUT/TEXTAREA elements).
I used jQuery's docuemnt.ready function to add the onclick att...
How do i focus a input type="text" automatic when my id changes in page url ?
For example: http://mysite.php?id=2
I want to focus the mouse on my type="text" when my PHP IF statement is met without using buttons.
<form>
<input type="text">
</form>
It should go something like: php IF (condition) { focus the mouse to input type="text" ...
Hi,
I have an application which I'm developing in GWT.
I've noticed that sometimes (I'm not sure it happens all the time) after compiling, and generating a new version, if I will try to access my program's URL from IE8 it will result in a 404 in my eclipse log.
I think this is because the browser caches the actual 1232dfsfda.html URL and...