The situation is that I am using a .js that is served to me to use on my site. Part of that routine displays an image. I just want that .js snippet (includes <script> tags) to load the script (image) into the background of a table cell.
I ultimately want to add more to the table cell as a partial overlay, e.g. color, or create a slightly-modified graphic to immediately switch with the original once loaded. I want it to work in all browsers. I am calling the script in a PHP file.
Is there an 'onload' command or other way (CSS, etc.) of doing this? Also, is there a way to move the .js outside of the <script> tags?
You're going to have so show some of your code to give a better idea of what you're working with. Show the real code, too, not something you put together as an example.
I'm trying out the code for someone so I can't post the exact code here, but what I can say is that the link to the graphic is contained inside of the .js file. This graphic is to be displayed on the web page upon loading the .js file.
I have a rectangle.jpg that I want to place 'on top' (overlay) of the graphic at a particular corner of the graphic from the .js file.
Maybe it's not the 'background' I need to place the graphic contained in the .js file. Either way, it is a graphic contained in a javascript file that I want to sit behind the small rectangle.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.