On a site I am working on I load up a series of images which can be animated using some controls I implemented w/javascript. Everything works just fine in all browsers but IE6 which locks up and never recovers; at least not w/in the 15min I let it sit there.
The part it is choking on is a portion where I try to modified the contents of...
Hi,
i have the following html :
<input type="text" id="searchbox" name="q" value="Search Pictures..." onclick=" if(this.value=='Search Pictures...'){this.value='';}" />
It's works when i open the page for the first time, but when i type something and search , then i come back to the page, or refresh, i find the past keyword still sti...
I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress Audio Player, to be exact) to play audio on the web page of a client. Given the nature of Flash based players - AFAIK they all use Flash's audio/video decoding libraries - the exact player product might not matter, though.
She complains that some specifi...
I am using jquery to get a count of children elements within a parent div.
$('#slideshow > div').size()
Then using append(), I'd like to inject the number of div elements that are in #slideshow into another div called .mainImageBrowserTabButtonWrapper
Any help on this would be appreciated.
EDIT
I realize my initial question didn't ...
Possible Duplicate:
How does Google achieve the fading effect on the home page?
Hi All,
If you visit Google, notice that when the page loads it is very sterile. Upon moving the mouse many elements of the web page now appear in front of you.
How is this done? I think that it is pretty neat.
Is it AJAX?
...
Hello, I am wanting to have a numbers/currency only textbox control.
So basically it should accept this kind of input
$123
523,100
$12.50
85.59
and convert this to
123
523100
12.50
85.59
and should not accept this input
F12
309$2342
,102
I have looked at validator controls but I would like to this conversion/checking complet...
I have the following code to show how long a user has left before their session will expire, I am using WordPress. How can I do this? Thanks
<script>
var obj_Span;
var n_Seconds = 0;
var n_Minutes = 0;
var n_Hours = 0;
function F_ConvertNumberToString ( n_Num )
{
var str_Num = String(n_Num);
...
I have a table of locations. Each location has a individual url associated with it. I am using one column to activate / deactivate that url so I can turn locations off and on. I'm using jQuery's bind / click to do that with an AJAX request.
I now want to make clicking anywhere on that table row take the user to that individual url.
va...
I want to scroll 2 divs when I start the page. I add to the onload the events, but it stops here:
var cross_marquee=document.getElementById(marque)
cross_marquee.style.top=0
Can someone help me?
The code is:
var delayb4scroll=2000
var marqueespeed=1
var pauseit=0
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
...
<script language="JavaScript" type="text/javascript">
if (location.href.indexOf('?dest=') > 0)
window.open('/about.aspx', '', '')
</script>
how do i make this work. Its in aspx file.
...
given the following string:
var htmlStr = '<p class="red_349dsa01">This is</p><p class="blue_saf9vsaz">a test</p>';
how can I remove the very first and last tag off this string? This would be the result:
var htmlStr = 'This is</p><p class="blue_saf9vsaz">a test';
I know this will create invalid HTML, but I just want to know if thi...
I want to display OpenOffice files, .odt and .odp at client side using a web browser.
These files are zipped files. Using Ajax, I can get these files from server but these are zipped files. I have to unzip them using JavaScript, I have tried using inflate.js, http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt, but witho...
How to detect click on javascript which is fired from DIV? For example I have 3 adSense ads in 3 differnt DIVs on page, and I want to detect and trigger operation when ad is clicked. It is of course easy to detect click on DIV when it is empty, or with any other element but how to detect click on adSense ad (code)? Any idea? I will be ve...
Hi,
i have this function :
jQuery.fn.getParent = function(num) {
var last = this[0];
for (var i = 0; i < num; i++) {
last = last.parentNode;
}
return jQuery(last);
};
and this html :
<div class="statuscontainer">
<div class="title">
Title of div here
</div>
blah blah blah blah <br>
<a onclick="$(this).getParent(4).fadeTo("slow"...
I'm using the Google Maps API to plot several points on a map. However, in the click event function below, i is always set to 4, i.e. its value after iterating the loop:
// note these are actual addresses in the real page
var addresses = new Array( "addr 1", "addr 2", "addr 3", "addr 4" );
for (var i = 0; i < addresses.length; i++) {
...
Next to an input field, I want to have a small '[?]' link which will display a brief clarification. I would like this link to display this tooltip both when the mouse hovers over the [?] as well as when the [?] is clicked. There is no other action associated with this [?] link.
A normal tooltip (as provided by browsers when faced with H...
I want to change the font size of my gridview in javascript because i am creating a printable version. How can I change the font size in javascript for the gridview?
...
Given the following strings:
htmlStr1 = "<img>test1</img>";
htmlStr2 = "<div>test2</div>";
I'd like to know if there's a way to write a function just to detect for the "img" tag (for example). So if both of these strings are passed to it, and it should not do anything if the 2nd string is passed to it.
so for example, you'd run a fu...
Facebook has a "Dom Placeholder" on their Password field when logging on. When I click on the input for the password, the placeholder disappears and allows me to type my password "masked".
Is this Javascript related and how would I go on replicating this script?
...
I do not understand quite completely how to apply constructors on this object creation method:
var MyObject = {
...
};
I know that you can do:
var MyObject = new Object();
MyObject.prototype.constructor = function(props)
{
...
}
or...
function MyObject(prop1, prop2)
{
this.prop1 = prop1;
...
}
Can I do something like t...