What is wrong with this javascript?

This is a discussion on "What is wrong with this javascript?" within the JavaScript Forum section. This forum, and the thread "What is wrong with this javascript? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 12th, 2005, 20:12
New Member
Join Date: Dec 2005
Age: 28
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
What is wrong with this javascript?

I have several popups on my flash site, on these popups I want buttons which return you to the main movie at a certain frame. The buttons on the popups are also in flash movies. So far I have this actionscript on my button...

Code: Select all
on(release){
   getURL("javascript: window.opener.dosomething()")
 }
and this code in the HTML of my main site...

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <script language="JavaScript">
 function dosomething() {
 if(window.document['liveoclothing']){
 window.document['liveoclothing'].GotoFrame(658);
 }
 else if(navigator.appName.indexOf("Microsoft Internet")==-1){
 if (document.embeds && document.embeds['liveoclothing']){
 document.embeds['liveoclothing'].GotoFrame(658);
 }
 }
 else if(navigator.appName.indexOf("Microsoft Internet")!=-1){
 document.getElementById('liveoclothing').GotoFrame(658);
 }
 }
 </script>
 <link rel="shortcut icon" href="favicon.ico" >
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 <title>LiVe 'O' cLoThInG.cOm</title>
 <style type="text/css">
 <!--
 body {
     background-image: url();
     background-color: #000000;
 }
 -->
 </style></head>
 <body>
 <!--url's used in the movie-->
 <!--text used in the movie-->
 
   
     
   
 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=6,0,29,0" width="700" height="550" id="liveoclothing">
       <param name="movie" value="liveoclothing.swf" />
       <param name="quality" value="high" />
       <embed src="liveoclothing.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="liveoclothing" swLiveConnect="true" width="700" height="550"></embed>
     </object>
 </body>
 </html>
so far, nothing happens when the button is pressed.

Can anyone help?

Last edited by sypher; Dec 12th, 2005 at 22:09.
Reply With Quote

Reply

Tags
wrong, javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone see what's wrong with this? Matty Brown PHP Forum 7 Sep 24th, 2007 07:26
Something wrong Daniel Webforumz Cafe 11 Jul 20th, 2007 18:08
please tell me what is wrong with this ?? saltedm8 Graphics and 3D 12 Jun 30th, 2007 09:10
Where am I going wrong? JamesQ Flash & Multimedia Forum 6 Jun 5th, 2007 15:05
what is wrong-what do i do mdavid87 Classic ASP 4 Jun 3rd, 2005 09:15


All times are GMT. The time now is 04:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43