Forum: JavaScript / DHTML / AJAX 19 Days Ago |
| Replies: 1 Views: 472 Well, on a first place, I would never try to use Javascript for a password protected business, but if you have to, create the code and, once finished, try to obfuscate the whole, instead of a single... |
Forum: JavaScript / DHTML / AJAX May 1st, 2008 |
| Replies: 4 Views: 3,160 From your message, I conclude that your problem is that Javascript does not understand that for you, "10,2" equals "10.2".
Here I wrote a sample html, but the important part is the javascript... |
Forum: JavaScript / DHTML / AJAX Apr 26th, 2008 |
| Replies: 4 Views: 3,160 Please specify a bit more.
Do you already have a sort of validation function? |
Forum: JavaScript / DHTML / AJAX Apr 26th, 2008 |
| Replies: 6 Views: 6,734 You may try to replace your line
document.getElementById("full-details").innerHTML=xmlHttp.responseText
with a line like:
... |
Forum: JavaScript / DHTML / AJAX Apr 21st, 2008 |
| Replies: 1 Views: 1,294 Not everybody have DW CS3. If you post the code you are talking about, somebody can figure out your problem, but from the small snippet explanation.... |
Forum: JavaScript / DHTML / AJAX Apr 21st, 2008 |
| Replies: 24 Views: 7,882 If you have the image on a server (whichever), just place the url on the "a" tag...
<a href="spike.jpg" onclick="this.href = 'javascript:void(0);';">
<img... |
Forum: JavaScript / DHTML / AJAX Apr 21st, 2008 |
| Replies: 2 Views: 1,782 On every menu, either CSS based or JavaScript based menu, the link is actually achieved by the (X)HTML tag "a". The "target" attribute of the "a" tag tells the browser to remains on same window or... |
Forum: JavaScript / DHTML / AJAX Apr 20th, 2008 |
| Replies: 8 Views: 1,095 if "selectedIndex" within your function is the topic than can exist or not, I would create a function to find out the correct random destination, something like:
function destination() {
var... |
Forum: JavaScript / DHTML / AJAX Apr 20th, 2008 |
| Replies: 8 Views: 1,095 So if I understand correctly, there is not a problem with the random generation but with the links; those, you have to include some kind of check before you write the link on your page, something... |
Forum: JavaScript / DHTML / AJAX Apr 20th, 2008 |
| Replies: 8 Views: 1,095 Are you sure that you have 2000 topics? Or is that only the maximum number?
You would need to know the maximum number of topics for the random generation number to work between the range. So, in the... |
Forum: JavaScript / DHTML / AJAX Apr 20th, 2008 |
| Replies: 8 Views: 1,095 Try to change the random generation to an expression like:
topicnum = Math.round(Math.random()*(topiccount-1))+0; |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 4 Views: 1,273 Oops!
Sorry for the typo.
Thank YOU ~s.o.s~ |
Forum: JavaScript / DHTML / AJAX Apr 13th, 2008 |
| Replies: 4 Views: 1,273 You create a new array
var images = new Array();
and then you want to reference
imgname[0] = 'home.jpg';
...
..hmmm! names do not match. |
Forum: JavaScript / DHTML / AJAX Apr 13th, 2008 |
| Replies: 2 Views: 3,462 The easiest way is to create a new function on you JS code, simple as
function exall() {
for (inde=1;inde<=5;inde=inde+2) {
ToggleRowVisibility("paneltable",inde);
}
} |
Forum: JavaScript / DHTML / AJAX Apr 13th, 2008 |
| Replies: 11 Views: 7,880 What you need is not JavaScript.
Use Java instead. |
Forum: JavaScript / DHTML / AJAX Apr 8th, 2008 |
| Replies: 1 Views: 3,642 Instead of looking for scroll positions relative to the document, I would read mouse's position to find out where to place the <div>. The event element do the trick, so:
event.clientX is the x... |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 7 Views: 3,103 OK!, I wrote a simple code that you may customize. It is created for 10 rolling pictures, but the number can easily be incremented just by adding more picture definition lines, the code will... |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 5 Views: 1,307 OK! I've just sent an email from my gmail account with IE7 screenshot. The discrimination works! |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 1 Views: 677 There are at least three missing functions:
1. yCoord ()
2. placeIt()
3. shiftIt()
without them, the code cannot works. |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 7 Views: 3,103 As far as I understand, what you need is 1) to create a functions that is called every time your page is loaded; tht's achieved with the onload="myfunction()" attribute within the <body> tag. and 2)... |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 5 Views: 5,123 At a first glance, I can see that on your calling code:
<div class="icons"> <a href="#" onmouseover="SwapOut(personal, 0)" onmouseout="SwapBack(personal, 1)"><img name="personal" alt="logo"... |