[open] HTML help file, using relative path for image
I'm currently editing my help file
send_message.HTML for a plug-in that I wrote
In my help file I want to include an image to display when the help file is accessed inside of opensesame. Currently I display the image by using the absolute path to the image.
<P><IMG SRC="C:\Program Files (x86)\OpenSesame\plugins\send_message\send_message_large.png" NAME="graphics2" ALIGN=BOTTOM WIDTH=32 HEIGHT=32 BORDER=0></P>
I would like to change from using an absolute path to a relative path, but when I do so my image can't be found.
<P><IMG SRC="send_message_large.png" NAME="graphics2" ALIGN=BOTTOM WIDTH=32 HEIGHT=32 BORDER=0></P>
I've asked around on forums on other websites for HTML specific questions and it seems as if this is the code I would have to use to accomplish this. Both of my
send_message_large.PNG files are located in the
send_message folder. All of the HTML people I've talked to say to use
<img src="send_message.png" /> for relative paths.
I'm wondering if opensesame copys the help file when loading in a plugin and calls the HTML file from somewhere else when the help file is accessed inside of opensesame which could cause the relative path to not be that same as when it was located in my plug-in folder?
If you have any suggestions of where to look for this problem please let me know, thank you.