Results 1 to 4 of 4

Thread: inserting html link in php code

  1. #1
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default inserting html link in php code

    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/

    Code:
    <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>
    Last edited by jundo12; 10-13-2014 at 10:28 AM. Reason: going advanced to enter code

  2. #2
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default

    erm i got it to quit throwing the error but none of the image links are clickable. this is what i have now

    Code:
    		
    
    <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>

  3. #3
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default

    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

  4. #4
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default

    eep, it's a canvas. gonna need the javascript category for this i guess.

Similar Threads

  1. HTML code in link building.
    By rajib dn in forum HTML
    Replies: 8
    Last Post: 07-05-2013, 09:52 AM
  2. Replies: 0
    Last Post: 07-28-2012, 07:21 PM
  3. Need help inserting script into my website html
    By tmendola in forum Looking for such a script or service
    Replies: 1
    Last Post: 08-06-2010, 07:14 AM
  4. inserting external pages in html
    By QuizToon in forum HTML
    Replies: 1
    Last Post: 11-30-2005, 04:34 PM
  5. HELP with inserting html using css
    By hossfly in forum CSS
    Replies: 1
    Last Post: 10-13-2004, 12:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •