User Profile

Collapse

Profile Sidebar

Collapse
pearlie
pearlie
Last Activity: Mar 16 '11, 03:30 PM
Joined: Feb 28 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • It's true, it's javascript in PHP. I don't know if there's a pure PHP way to do this that might be better. (It's a point representing a player moving across a map.) But what I meant was I used the original code in an html file and it worked just fine but when I made it php so I could access the database, it no longer worked until all these changes were made. Thus the CSS seems much more forgiving in html/javascript than it does in a php file....
    See more | Go to post

    Leave a comment:


  • This seems to have solved the problem. I needed to give the background a width and height as well as the image in front of it.
    Thanks for your help on this. I can't believe how exacting php is. Things that work in javascript are nowhere near working in php. That's at least something I've learned so far.
    Code:
     <style type="text/css"> 
    #bgfig {
    background-image : url(map.gif);
    background-repeat :
    ...
    See more | Go to post

    Leave a comment:


  • thanks for the advice. I changed the id's. Now the background image does not appear at all except for a tiny little square at the upper corner. I can see in that square that it is actually moving, but how do I get it to fill the 300 x 300 pixel space of the dot.gif image which is simply a dot in the middle of a transparent gif. The background image should appear under it.
    See more | Go to post

    Leave a comment:


  • pearlie
    started a topic How to change position of background image?

    How to change position of background image?

    This is in the body.
    Code:
    <div id="bgfig" style="position:absolute; z-index: 1; left: 10px; top: 10px; visibility:visible"><img id="bgfig" border="0" src="dot.gif" width="300" 
    height="300"></a>   
    </div>
    This is in the header.
    Code:
    <style type="text/css"> 
    #bgfig {
    background-image : url(map.gif);
    ...
    See more | Go to post
    Last edited by acoder; Feb 28 '11, 06:24 PM.
No activity results to display
Show More
Working...