beyzad Posted December 27, 2012 Share Posted December 27, 2012 Hi there. I have a problem getting an element background image. If i use class and define it in external css, i can't even get the background. If i use style argument, the output is vary in browsers. For example in IE & FF the output is: url:("image.png") But in chrome the output is: url:("file:///c:/users/.....") Any suggestion? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/272402-how-to-get-background-defined-in-external-css/ Share on other sites More sharing options...
Love2c0de Posted December 27, 2012 Share Posted December 27, 2012 What result do you want? Do you want just the filename so you can work with it in PHP? Regards, AoTB. Quote Link to comment https://forums.phpfreaks.com/topic/272402-how-to-get-background-defined-in-external-css/#findComment-1401502 Share on other sites More sharing options...
beyzad Posted December 27, 2012 Author Share Posted December 27, 2012 Hi. I need the exact file name. I have no problem using php as well. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/272402-how-to-get-background-defined-in-external-css/#findComment-1401633 Share on other sites More sharing options...
beyzad Posted December 30, 2012 Author Share Posted December 30, 2012 Ok looks like i am doing wrong or something. Here is what i wanna do: - I am creating a game using HTML. - For a section of game, I have to put 4 images on top of each other. For example: face, eyes, nose and mouth. - I need to make 2 buttons for each image so people can swith to next, previous images in array. - It's better to avoid using AJAX. so i want to do this only with javascript and CSS. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/272402-how-to-get-background-defined-in-external-css/#findComment-1402148 Share on other sites More sharing options...
Anickyan Posted January 5, 2013 Share Posted January 5, 2013 You can use z-indexes. Look it up on Google Quote Link to comment https://forums.phpfreaks.com/topic/272402-how-to-get-background-defined-in-external-css/#findComment-1403437 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.