Author |
Message |
20/06/2005 00:28:36
|
Anonymous
|
Hi all,
I have a simple request. I would like to have a button next to the vote button which when cliked will pop a window with an image in it. I would love to have an option right between the Question option and OPtion 1 window which says like:
Image: and then you have to fill up the link, and the size of the window.
so just tryed to put:
<input type="button" onClick="window.open( "http://www.google.com/" )" value="Image"> in the template script and works however I would like to it be poll specific diferent polls different images you know.
Let say the Image option is left blank for the link..this would mean that there will be no image so dont display the image button.
thanx..
ms
PS I hope that makes sense..
|
|
20/06/2005 00:49:41
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
To my knowledge you can put ANYTHING as the option, even HTML and javascript.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
20/06/2005 01:15:57
|
Anonymous
|
Excellent, thank you that was verry good.
Just for information:
in the Question window you can paste:
<INPUT type="button" value="Image" onClick="window.open('http://www.yourdomain.com/img.jpg','mywindow','width=600,height=500')">
and it works just fine
One more quetion : Is there an option to make the Question window multi- line rather than a single line ? thnx
|
|
20/06/2005 01:38:19
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Tried <br> ?
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
20/06/2005 02:04:48
|
Anonymous
|
sorry did not get that one...were should I put the tag..
|
|
20/06/2005 02:07:34
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Where ever you want to start on a new line.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
20/06/2005 02:07:37
|
Anonymous
|
sorry may be I wasnt clear..
when you create a new Poll you need to put a Question right. This window is just one line I want to make it larger multi-line like the window Im using right now to type this msg. See if you have a single line question is fine, however if you want to describe something and ask the question that you need more space..
|
|
20/06/2005 02:08:53
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Just a case of editting the admin HTML then to change the <input to a <textarea> instead.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
20/06/2005 02:35:53
|
Anonymous
|
well I think the options are generated on the fly by using $poll_options however I dont know exactly where these are generated...any idea which file to edit..
|
|
|