Log in

View Full Version : inserting html link in php code



jundo12
10-13-2014, 09:27 AM
i've tried the echo and it threw an error. i removed the quotes originally, as you can see in the first link in the code below (warning: page is webgl and really doesn't work well in chrome)
this is php page in a webgl browser game. i need the little buttons at the bottom to be html image links in divs. i have the html, the images, the div, but i can't seem to get a workable way to exit php long enough to make the links clickable
http://thelivingmoon.com/undomiel/game/homes/


<div style="position: absolute; left: 80%; top: 90%; right: 0%">
<a href=../hubmenu1.html target=new><img src=../progressmenu.jpg width=15% border=0 alt="home"></a>
<a href="../hubmap.html" onclick="NewWindow(this.href,'name','900','500','yes');return false"><img src="../mapbutton.jpg" width="15%" border=0></a>
<a href="../index.html"><img src="../gotoentry.jpg" width="15%" border=0 alt="home"></a>
</div>

jundo12
10-13-2014, 09:44 AM
erm i got it to quit throwing the error but none of the image links are clickable. this is what i have now




<div style="position: absolute; left: 80%; top: 90%; right: 0%">

<?php
Echo "<a href='http://thelivingmoon.com/undomiel/game/hubmenu1.html' target='new'><img src='http://thelivingmoon.com/undomiel/game/progressmenu.jpg' width='15%' border='0'></a>

<a href='http://thelivingmoon.com/undomiel/game/hubmap.html' onclick='NewWindow(this.href,'name','900','500','yes');return false'><img src='http://thelivingmoon.com/undomiel/game/mapbutton.jpg' width='15%' border=0></a>

<a href='http://thelivingmoon.com/undomiel/game/index.html'><img src='http://thelivingmoon.com/undomiel/game/gotoentry.jpg' width='15%' border='0'></a>"
?>

</div>

jundo12
10-13-2014, 10:01 AM
i tried it <?php echo "
and
<?php echo '
and
<?php echo ( '

when the single quotes were in the echo i made the html links double quotes. when the double quotes were in the echo, i removed the double quotes from the html links.

no luck

jundo12
10-13-2014, 10:48 AM
eep, it's a canvas. gonna need the javascript category for this i guess.