用户单击链接时动态更改对象的值。 [英] Dynamically changing the value of an Object when user clicks a link.

查看:69
本文介绍了用户单击链接时动态更改对象的值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用我最喜欢的用户视频制作视频播放器。有一个链接列表(A-Z),点击下拉菜单并显示用户选择的视频的名称。当用户点击链接时,视频会显示在页面中央并开始播放。我需要动态地执行此操作有几个原因。

1)我预装了视频,占用的空间很大,需要永远加载。

2)你可以同时播放多个视频,这很烦人。


我现在在学校(第一天回来)并且不要'没有时间去谷歌,所以如果有人知道答案,并且感到慷慨^ _ ^如果不是不担心我会稍后抬头(我有时太懒我了)。

I''m trying to make a video player out of my users favorite videos. There''s a list of links (A-Z) that drop-down on click and show the names of the videos that the user has selected. When the user clicks the link the video appears in the center of the page and begins to play. I need to do this dynamically for several reasons.

1) I have the videos preloaded and it takes up far to much space and takes forever to load.

2) You can have multiple videos playing at the same time which is rather annoying.

I''m at school right now (first day back) and don''t have the time to google it so if anyone knows the answer and is feeling generous ^_^ If not don''t worry about I''ll look up later (I''m too lazy for my own good sometimes).

谢谢,

{\_ /}

('''')

(")[DEATH](")

(")(")
Thanks,
{\_/}
('' . '')
(")[DEATH](")
(")(")

推荐答案

展开 | 选择 | Wrap | 行号


不幸的是,它并不那么简单。每个链接都需要将源更改为其他视频。你想让我发布我现在正在使用的内容吗?

Unfortunately, it''s not that simple. Each link needs to change the source to a different video. Do you want me to post what I''m using now?

谢谢,

{\_ /}

('''')

(")[DEATH](")

(")( ")
Thanks,
{\_/}
('' . '')
(")[DEATH](")
(")(")


是的,这有助于使事情更加清晰。
Yes, that would help make things a bit more clear.


这篇关于用户单击链接时动态更改对象的值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆