You need the following code for replacing a substring in a string
img.src = img.src.replace(/images/, "image2");
Asssuming that img is an image element.
Hope this helps
Type: Posts; User: codeexploiter; Keyword(s):
You need the following code for replacing a substring in a string
img.src = img.src.replace(/images/, "image2");
Asssuming that img is an image element.
Hope this helps
According to the mentioned script's docs
displaymode: {type:'auto|manual', pause:milliseconds, cycles:0|integer, wraparound:true|false, randomize:true|false},
The displaymode object...
Change the existing CSS of the following with this one. Check the new code introduced which is highlighted
#content p {
background-color:#EBEBEB;
border:5px double #1B1464;
overflow:hidden;...
The one you've mentioned is an image zoom tool. This one is a JavaScript based image zoom tool and rather most of the image zoom tools are JS based ones (I don't know whether there is any non-JS...
Hi all,
I am looking for a method through which I can use a gradient image as my faux column background. I have used the faux column technique successfully with non-gradient backgrounds but...
CSS sprites are very good as they allow to avoid multiple image loading requests. This in turn will improve the performance of your web page loading. I mean your site will make a single image request...
Here is the code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;...
var original = "../../images/01a.jpg", j;
var replaceValue = "b";
if(original.indexOf("a.") !== -1){
var j = original.split("a.")[0] + replaceValue + "." + original.split("a.")[1];
}
alert(j)
Can you provide a link where I can see your page in question? This would help me (or any other one) to correctly guide you.
If you don't want to remove the tab content while the ajax call is taking place, you need to modify ajaxtabs.js before you include it in your page like the following manner (highlighted the line that...
You can specify a auto height on all elements that needs to be fit with the content. From the CSS you've mentioned in your post it seems that for most of the items you have set an explicity height...
I have prepared a small demo for your purpose. I am not sure why did you use the each function for this operation, which is not necessary for this.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML...
Give your tab links like the following code itself. The links should be replaced with your own links. The rest will be handled by JS (it will store those links internally and remove them from anchor...
Here is a demo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;...
Thanks John for the help (as usual :D).
Hi All,
I am looking for a cross-browser based method for achieving vertical bottom & horizontal center alignment together. The method that I've tried is based on the line-height property and it...
Hi orhun,
I have made some changes in ajaxtabs.js file to accomodate the points you've mentioned.
Just replace the default (I would say to rename the default ajaxtabs.js to ajaxtabs_0.js) with...
The following line is not correct
var ddlvalue = dropdown[index].value;
It should be
var ddlvalue = dropdown.options[index].value;
http://flowplayer.org/
You can use:
1. Cookies as forum_amnesiac suggested. But this has an issue. The user may disabled cookie in his or her browser. In such a case the whole thing fails. The target page will never get...
Here is a demo. I have combined both the conveyor script slideshow and the lightbox together to create this one.
I have made some changes in the source of of script slideshow and the lightbox:
...
Here is a demo page with what you want
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type"...
Can you provide a page where we can see the issue?
Hi all,
I am looking for some hot/new article topics on JavaScript and CSS.
Thanks in advance for your suggestions.
Regards
Hi,
You can find out the latitude and longitude of a location that you want through Google Map API and can tag the location without much trouble.
Google Map API provides a class GClientGeocoder...