homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam

The Geek Culture Forums


Post New Topic  New Poll  Post A Reply
my profile | directory login | | search | faq | forum home
  next oldest topic   next newest topic
» The Geek Culture Forums   » Other Geeky Stuff   » Ask a Geek!   » Javascript help......

 - UBBFriend: Email this page to someone!    
Author Topic: Javascript help......
andyh2
Single Celled Newbie
Member # 6018

Rate Member
Icon 5 posted October 21, 2006 20:56      Profile for andyh2     Send New Private Message       Edit/Delete Post   Reply With Quote 
Hey guys.
I need to get the javascript code to be able to do something similar to this (http://geekkid.net/jukebox) where it switches between the slim version of the player and the Regular.
I just need to be able to do more things. (games)

If you need any more info just say so.


andyh2

--------------------
MAC ADDICT

Posts: 3 | From: in a pile of HTML | Registered: Oct 2006  |  IP: Logged
maximile

SuperFan!
Member # 3446

Member Rated:
5
Icon 1 posted October 22, 2006 05:15      Profile for maximile   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
Ok... well, that's easy enough. Have a look at the page source.

You see the code in the
code:
<script>

tags near the top? That's what you need to replace one thing with another (assuming you're using SWFObject. Then, see that
code:
<div id="flashcontent" >

? That's where the Flash movie will go. And see the links with the
code:
href = "javascript: mainReplace();"

? That's what makes those links replace one with the other.

This method doesn't support people who have Flash but no Javascript. To do that, you'd need to make the the switch links like this:
code:
<a href="a page with the alternate version" onclick="mainReplace(); return(false);">

Just ask if you want more help.
Posts: 1085 | From: London, UK (Powys, UK in hols) | Registered: Feb 2005  |  IP: Logged
andyh2
Single Celled Newbie
Member # 6018

Rate Member
Icon 1 posted October 22, 2006 07:30      Profile for andyh2     Send New Private Message       Edit/Delete Post   Reply With Quote 
Thanks- I got that!

--------------------
MAC ADDICT

Posts: 3 | From: in a pile of HTML | Registered: Oct 2006  |  IP: Logged
andyh2
Single Celled Newbie
Member # 6018

Rate Member
Icon 2 posted October 22, 2006 08:44      Profile for andyh2     Send New Private Message       Edit/Delete Post   Reply With Quote 
I ran into a problem [Frown]
I can't figure out how to do it with my games that are going to be on my site!!
Is there any difference?

--------------------
MAC ADDICT

Posts: 3 | From: in a pile of HTML | Registered: Oct 2006  |  IP: Logged
maximile

SuperFan!
Member # 3446

Member Rated:
5
Icon 1 posted October 22, 2006 09:31      Profile for maximile   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
They're Flash games? There shouldn't be a problem... can we see the page?
Posts: 1085 | From: London, UK (Powys, UK in hols) | Registered: Feb 2005  |  IP: Logged


All times are Eastern Time  
Post New Topic  New Poll  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | Geek Culture Home Page

2015 Geek Culture

Powered by Infopop Corporation
UBB.classicTM 6.4.0



homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam