并非显示弹出窗口内的所有内容 [英] Not all of the content showing inside of the popup

查看:118
本文介绍了并非显示弹出窗口内的所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个弹出式插件。每当我点击链接时,element_to_pop_up DIV中的内容都会写入弹出窗口中。但是我添加了一个没有出现在弹出窗口中的函数,它在主页面中显示出来。为什么会发生?
我猜这些点使得这个函数得到了回应,但是它们超出了弹出DIV的元素。如何克服它?

I have a popup plugin. Whenever i click the link, the things inside element_to_pop_up DIV are written in the popup window. However i added a function which is not appearing in the popup, it is showed outside of it in the main page. Why does that happen? I guess that the dots make this function get echoed but they are out of the element to pop up DIV. How to get over it?

function writecomments($photoid){
echo $photoid;
}

echo "
<div class='element_to_pop_up'>
".writecomments($photoid)."
<img id='stop' src='".$numphotos['link']."' alt='photo' class='photolink' align='middle'>
<form action='main.php' class='commentsform' method='post'>
<textarea rows='8' cols='80' name='comments'></textarea> <br />
<input type='hidden' name='pid' value='".$photoid."'>
<input type='submit' name='send' value='Wyślij'>
</form>
<a class='b-close'></a>
</div>";

}

我正在使用bpopup插件

I am using bpopup plugin

http://dinbror.dk/blog/bPopup/

源代码:

Source code:

<div class='element_to_pop_up'>
writecomments(302)
<img id='stop' src='upload/Dzuliet_3.jpg' alt='photo' class='photolink' align='middle'>
<form action='main.php' class='commentsform' method='post'>
<textarea rows='8' cols='80' name='comments'></textarea> <br />
<input type='hidden' name='pid' value='302'>
<input type='submit' name='send' value='Wyślij'>
</form>
<a class='b-close'></a>


推荐答案


,只是返回它:)

Don't echo,just return it :)



function writecomments($photoid){
 return $photoid;
}

这篇关于并非显示弹出窗口内的所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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