Link to home
Start Free TrialLog in
Avatar of amateur6
amateur6Flag for United States of America

asked on

Chrome on PC: Flash/javascript function not working?

Please don't comment on the site intro, design, etc -- it's not my fault!

For some reason this script combination seems to work in everything except Chrome on the PC.

Page: http://www.squeezepod.com/ie-fix.html

In order to keep the Add This buttons off of the intro, but bring them in once the home page comes on screen, I'm using this Javascript:  
<script type="text/javascript">
function ContentRight()
	{
	var obj = document.getElementById('addThis');
	var currentPosition = parseInt(obj.style.left)
	var middle = document.get
	obj.style.left = 50+'%';
	}
</script>

Open in new window


Together with this div  
<div id="addThis" style="position: absolute; top:0; left:0; width: 330px; margin: 620px 0 0 -510px;"><!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_tumblr"></a>
<a class="addthis_button_email"></a>
</div>

Open in new window


And calling the Javascript from AS 2.0:
onClipEvent (load) {
	getURL("javascript:ContentRight()");
}

Open in new window


As I say, it works in everything except Chrome. Any ideas? Thanks!
Avatar of dgofman
dgofman
Flag of United States of America image

What is not working on my Chrome I can see your page the same as on IE
Avatar of Tom Beck
I see the button group in Firefox except that it's partly covered by the background. In Chrome there's no space at the bottom of the movie for the button group and no way to scroll or zoom out. In IE the buttons are fully visible if my browser window is large enough.

Maybe I'm missing something. It looks like you are using the Flash intro's last frame as the Home page of the web site. Wondering why you don't just leave the Flash page and redirect to an actual home page at the end of the intro. You could place the button group there permanently. I'm no Flash expert, but maybe this will help:

http://forums.macrumors.com/showthread.php?t=507277
Avatar of amateur6

ASKER

Hi again dgofman -- here are the two images for comparison (the IE one shows the disappearing background my other question is about). User generated image User generated image
tommyBoy -- are you seeing what's in the two pix above? And yes, you're absolutely right about what I'm doing; the problem is that the client is in love with the animated menu that's on the Flash home page (under products).

But maybe I can talk them around to the other, non-Flash home page now (there's already one made since we needed to accommodate the iPad).
SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks folks -- I'll try these solutions when I get a break in my current workload! This hasn't been abandoned!
ok let's as know if you will able to use iframe
Argh! Still not had time. Still not abandoned. Thanks...
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.