tags:

views:

251

answers:

2

hi i want to display an image inside the facebook display box

but it is not working it shows only 1.gif(in text) and image is not showing plz help

[a] href="#" onclick="new Dialog().showMessage('Dialog', 'imagepath."1.gif"'); return false;"> display.

+1  A: 

Use fb:js-string to create an html body for the dialog, eg:

Show the dialog on page load (with the body 'searchDialogBod')

<script type="text/javascript">
var dialog = new Dialog().showMessage("Welcome to TopPoll", searchDialogBod, "Close");
</script>

Then define the body: (you can put any html in here)

<fb:js-string var='searchDialogBod'>
<center>
<fb:explanation><fb:message><font size="+2">Enter the name of a poll or any keyword</font></fb:message><form action="search.php" method="get"><input type="text" style="padding: 3px; font-size: 20px; width: 390px" name="s_q" id="s_q">
<input type="submit" value=" &nbsp;  &nbsp; Search &nbsp;  &nbsp; " class="dialognext">
</form></fb:explanation >
</center>
</fb:js-string>

Hope that helps

Cal S
Thanks a lot :)
vipinsahu
A: 

Thanks to all But finally I got the answer of the question please go to This Link

vipinsahu

related questions