English 中文(简体)
Click Radiobutton to open iframe using Fancy Box
原标题:Click radiobutton to open iframe using Fancybox

我有一个正常的超文本页,用户可以从3个无线电台选择一个选项。

[o] Option 1

[o] 备选案文2

[o] Option 3

然而,当他们点上无线电台选择2时,必须开立一个网页。

我安装了自动箱(对于那些不了解它的人来说,它已经奏效!) 打开一页的单体。

我在网站上有文本测试链接:

<a id="example1" href="http://www.url.com/pages/newpage.php?iframe">test</a>

因此,在我点击“测试”时,租赁箱打开了新页。 php。

这部法律是行之有效的。 但现在我需要这样做,以便你在选择2时点击无线电塔顿时打开该网页。 我尝试:

<input type="radio" id="example1" name="wnf" value="geven" onclick="window.open= http://www.url.com/pages/newpage.php?iframe " /> Option 2

这并不可行。 想法?

提前感谢。

最佳回答

你们需要把ancy子放在你的无线电台上,并将图像来源放在各种选择中,见

    $("#yourRabioBtnSelector").fancybox({
        target: this,
        href:  url_of_the_image 
    });
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签