Post Reply 
Javascript.
Author Message
amzter
The bird stole my shoe.

Posts: 1,830.3066
Threads: 342
Joined: 3rd May 2007
Reputation: -4.56241
E-Pigs: 54.7074
Offline
Post: #1
Javascript.
Hi guys and gals I need your help on some javascript. Basicly I have a website and I want to make it possible to change swf files in a div container when you click a button so for example on my site I had 2 videos, one of me explaining the purpose of the page and the second is a swf of my flash work, I have two buttons one for loading the explaining video and one with my flash work. I basicly would like to know how I can get the buttons to load them without having to refresh the webpage. Would it be something like on click change file in <div id= video> to work.swf if not displayed else display explaination.swf?

[Image: 494851774.png]
Search:
24/10/2008 12:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #2
RE: Javascript.

HTML Code
<div onclick="document.getElementById('the_element').innerHTML='new HTML code here';">


Use that as an idea.

24/10/2008 04:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amzter
The bird stole my shoe.

Posts: 1,830.3066
Threads: 342
Joined: 3rd May 2007
Reputation: -4.56241
E-Pigs: 54.7074
Offline
Post: #3
RE: Javascript.
Ok thanks Zinga i will try that.

[Image: 494851774.png]
Search:
26/10/2008 03:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
amzter
The bird stole my shoe.

Posts: 1,830.3066
Threads: 342
Joined: 3rd May 2007
Reputation: -4.56241
E-Pigs: 54.7074
Offline
Post: #4
RE: Javascript.
wait zinga a quick question cause i havent put this in my code yet cause i had some issue with my css but basicly do i just put this in after the buttons or after the video player. Thanks in advance

[Image: 494851774.png]
Search:
31/10/2008 11:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #5
RE: Javascript.
You should really know the answer to that...
31/10/2008 08:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amzter
The bird stole my shoe.

Posts: 1,830.3066
Threads: 342
Joined: 3rd May 2007
Reputation: -4.56241
E-Pigs: 54.7074
Offline
Post: #6
RE: Javascript.
I should but I don't lol

[Image: 494851774.png]
Search:
01/11/2008 05:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: