Log In · Register

 
 
Closed TopicStart new topic
unclickable youtube, for 2.0
xose
post Sep 3 2009, 04:24 PM
Post #1


Member
**

Group: Member
Posts: 15
Joined: Dec 2008
Member No: 705,878



is there a code or something to make it so that when someone clicks on your video it does not do anything?
 
Mickey
post Sep 3 2009, 05:11 PM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



You can place a transparent GIF image over it. Try putting this code in your About Me:

CODE
<img src="http://x.myspace.com/images/spacer.gif" class="cover" alt="" />

Then place this in your CSS section:

CODE
.cover {position:absolute; top:#px; left:50%; margin-left:#px; height:#px; width:#px; z-index:9;}

Replace the top and margin-left pound symbols with appropriate values to position the image above the video. I suggest you replace the image url to something visible at first so you can see the image while you're moving it around. Then, replace the height and width pound symbols with appropriate values according to the video's own size.
 
xose
post Sep 3 2009, 06:48 PM
Post #3


Member
**

Group: Member
Posts: 15
Joined: Dec 2008
Member No: 705,878



thanks it works somewhat, if somebody makes the internet window size smaller the box will move away from being on top of the video.
 
Mickey
post Sep 3 2009, 08:16 PM
Post #4


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Since I can't seem to get relative positioning to work, I'm afraid I don't have a solution for you besides the one I've already provided. Sorry.
 
xose
post Sep 3 2009, 09:47 PM
Post #5


Member
**

Group: Member
Posts: 15
Joined: Dec 2008
Member No: 705,878



thanks for the info, :)
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: