|
-
I'm looking for some one strong in script and decent in Swish for projects on my site.
-
LOL!
Post your problem. If you get a good answer, then that person must be ". . . strong in script and decent in Swish . . ."
You will get at least 6-12 good responses from the braintrust here, so fire away.
-
Re: LOL!
Originally posted by rdbruski
Post your problem. If you get a good answer, then that person must be ". . . strong in script and decent in Swish . . ."
You will get at least 6-12 good responses from the braintrust here, so fire away.
We have a swish file that opens when you go to our website http://www.home2000.com. It goes through it's message and at the end it says "click for details" This is where we are having our problem. We would like this to open a page in the mainFrame of the current browser window. The mainFrame is the lower right side of the screen or where the welcome screen is displayed. We are trying to use JavaScript to do this. So far nothing has worked, when we click on it there is no action.
In the actions tab, the onpress calls this:
Javascript: subregd();
The target has no value in it.
This is the code for the page:
<HTML>
<HEAD>
</HEAD>
<BODY>
<div align="left">
<script language="JavaScript">
<!--
function subregd()
{
parent.mainFrame.location='http://www.home2000.com/cgi/wwwthreads/showflat.pl?Cat=&Board=amerifaxreport&Number=203&p age=0&view=collapsed&sb=5';
myFunction();
}
function myFunction()
{
window.close();
}
document.onMouseDown = myFunction;
-->
</SCRIPT>
</div>
<P align="center"><object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="400" height="87">
<param name=movie value="small_win.swf">
<param name=quality value=high>
<embed src="small_win.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="400" height="87">
</embed>
</object>
</BODY>
</HTML>
Any help is much appreciated.
-
Sorry if I've misunderstood, but are you saying you don't have access to the original SWI file of the swish?
-
Amerifax,
Glad to see a fellow cheesehead here. Appleton here. Anyway ono your problem... first I would make the Subdivision Resource Guide movie part of your main site as a banner or something. Reason is because I think most users will do what I did the first time I went to your site. Close the pop-ups. In that case the movie is useless. If you make it a banner in the main site, then all you have to do is do an on click action load the page or movie in the appropriate frame. Hope it helps.
-
yeah I didn't read your post properly sorry!
-
Unless you really have to have it the way you currently have it,
I would change the way you enter your website.
After the user clicks enter the first time they visit your site after the compatibility check, just go right to the main site. Have that movie as a banner across the top. This lets you have a constant place for more movie content. The pop-up box movie is very annoying and I almost closed it because I thought it was an advertisement.
If you absolutely have to have the pop-up movie, do NOT load the other main page at the same time. On the "click to enter" button of the movie, THEN load that main page bringing it to front.
-
Originally posted by jomis003
If you make it a banner in the main site, then all you have to do is do an on click action load the page or movie in the appropriate frame. Hope it helps.
YOu have me thinking. I will have to evaluate your suggestion. I still would like to know why the script connect to Swish will not function.
-
It's people like yourselves that help us develop our website with your feedback. And we thank you for that. But for right now we want to leave the window as is. It is actually only supposed to open the first time you visit our site. The enter screen that does the system check is controlled by a cookie that resets every 30 days. Right now we are just trying to get everything to function properly, thus the problem with the script. On one of our other machines here in the office I get the following error trying to execute the script
Line: 1
Char: 1
Error: Object Expected
Code: 0
And it is opening another browser window. I want it to open in the mainFrame on the index page. The following link is what it is supposed to be opening.
http://www.home2000.com/cgi-bin/wwwt...collapsed&sb=5
-
If I am reading your code correctly, it looks like what you are trying to do is call the javascript from the html. In this version of swish you cant call an external command. Try using in your movie the "on click" action then "goto_url" and then paste the script in there. This may work. Good Luck!
-
We are already calling the script from Swish in the goto url function. We have used this before in some other things we have done, we just can't seem to get this one to work.
-
Hmmm..... I guess the next step that I would take is compare this code to one that does work. See what the difference is in them. If they are the same, it could be the page that you are trying to link.
-
Shhh!
WSAbstract has a script that will do this...you'll just need to modify it a little. Go to the following:
http://wsabstract.com/script/cut105.shtml
Just edit the location to reference your frame.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|