Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-12-2009, 04:40 PM   #1
TheCheshireCat
Senior Member
 
Join Date: Nov 2007
Posts: 164
Default problems with divs

Hello everyone

I created a website consisting of 2 divs, one containing a flash and one containing text.
The flash is used as a background for my text. See code:

Code:
<div id="text" style="position:absolute;text-align: right;width:100%;disabled:true;" id="bg">
	text...
</div>

<div id="flash">
	<p align='center'>
		<object width="990" height="613">
			<param name="bg" value="bgdark.swf">
			<param name="wmode" value="opaque">
			<embed src="bgdark.swf" width="990" height="613" wmode="opaque">
		</object>
	</p>
</div>
The problem is: The flash object contains clickable areas, and if I make the text in the text div long enough to cover those clickable areas, they stop being clickable. How do I make them clickable at all times?
Is there maybe a way to "disable" the text div?
I even used a script to make the text unselectable (can't mark it and then ctrl+c or whatever) and it didn't work;
text that touches a clickable part in the flash makes that part unclickable. the other clickable parts stay clickable.

Thanks in advance!
TheCheshireCat is offline   Reply With Quote
Old 11-13-2009, 01:46 PM   #2
kingundkong
kingundkong
 
kingundkong's Avatar
 
Join Date: Jul 2009
Posts: 320
Default

put your text in the flash file,
but who wants to click on something what is behind some text?
__________________
kingundkong is offline   Reply With Quote
Old 11-13-2009, 02:51 PM   #3
TheCheshireCat
Senior Member
 
Join Date: Nov 2007
Posts: 164
Default

Its not really "behind" the text; The text is written in paragraphs, but the browser sees all the paragraphs as a single rectangular block, including the spaces between the paragraphs.
http://img442.imageshack.us/i/50352688.jpg
See how the links are between the two paragraphs, but they're still unclickable because the browser also considers the space between the paragraphs as text.
Should I maybe just split the text into 2 separate divs? Or is there a better option?
TheCheshireCat is offline   Reply With Quote
Old 11-13-2009, 05:54 PM   #4
TheCheshireCat
Senior Member
 
Join Date: Nov 2007
Posts: 164
Default

I just ended up using 2 divs, one for the title, above the links, and one for the text, below it. It works more or less and its simple so I decided to go for it.

Thanks for all your help!
TheCheshireCat is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT. The time now is 03:47 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.