Linking an image to HTML code in...

User 384815 Photo


Registered User
3 posts

I am having a problem linking an image to HTML code in Visual Site Designer. I have tried multiple paths, placing the image in the "Files" section, and even in the folder where the pages reside. It still only comes up with text. I do not know coding, so if any of you can tell me how to do it, it would be MOST appreciated! Here is the code as it is now:

<script>function play()
{
myWindow = window.open('http://www.myplayer.xyz/radio/player/254?size=max', '_blank',
'toolbar=0,scrollbars=0,location=1,statusbar=1,menubar=1,resizable=0,width=638,height=570');
myWindow.focus();
myWindow = window.resizeTo(638 + (window.outerWidth - window.innerWidth), 570 + (window.outerHeight - window.innerHeight));
myWindow.css("overflow","hidden");
}
</script>
<a onclick ="return play();" href="">LAUNCH PLAYER!</a>
User 187934 Photo


Senior Advisor
20,187 posts

Hi Stephen,
Can you share a link to your page so we can see the issue?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,187 posts

You need to link your image like this.
<a href="" onclick="return play();"><img src="imagefoldername/mybuttonimagename.png" /></a>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 384815 Photo


Registered User
3 posts

Would that line be placed instead of the line <a onclick ="return play();" href="">LAUNCH PLAYER!</a> ?

THANK YOU SO MUCH for your assistance!
User 187934 Photo


Senior Advisor
20,187 posts

Yes.;) Go ahead and try it.:D
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.