•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,266 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,287 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 824 | Replies: 3
•
•
Join Date: Feb 2008
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
what i am trying to accomplish is to have two elements lets say SEND and RECEIVE.
when i click the element SEND i want the RECEIVE element to receive the effect.
currently my script only effects the element itself:
what i want to happen:
here is the sizechange function:
is there a way to do this (without using an html link)?
when i click the element SEND i want the RECEIVE element to receive the effect.
currently my script only effects the element itself:
javascript Syntax (Toggle Plain Text)
var animElements = document.getElementById("send").getElementsByTagName("p"); for(var i=0; i<animElements.length; i++) { animElements[i].onclick = sizeChange; }
what i want to happen:
javascript Syntax (Toggle Plain Text)
var animElements = document.getElementById("send").getElementsByTagName("p"); for(var i=0; i<animElements.length; i++) { when element is clicked, other element (recieve) goes to sizeChange }
here is the sizechange function:
javascript Syntax (Toggle Plain Text)
function sizeChange() { if (!this.currentWidth) this.currentWidth = 150; doWidthChangeMem(this,this.currentWidth,170,10,10,0.333); this.onclick = sizeRestore; } function sizeRestore() { doWidthChangeMem(this,this.currentWidth,150,10,10,0.5); this.onclick = sizeChange; }
is there a way to do this (without using an html link)?
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- add onclick event programmatically (JavaScript / DHTML / AJAX)
- Replacing one object with another (JavaScript / DHTML / AJAX)
- Object reference not set to an instance of an object (ASP.NET)
- delphi object casting (Pascal and Delphi)
- Onactivate event not working for flash object in firefox (JavaScript / DHTML / AJAX)
- Javascript - Expected J and Expected Object errors (JavaScript / DHTML / AJAX)
- event object (HTML and CSS)
- object undefined instead of string literal (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: cookie
- Next Thread: calculating values using onclick



Threaded Mode