This may seem simple but after looking into it I've found it to be more difficult than I thought. I have a site which pulls information from an external source. When it pulls the information it writes its own <html>and<head>tag within my html document, so its like an entirely new page within my page.
Check http://cityzenapp.us/wp-login2.php to see the site.
What I am trying to do is change the image of those buttons by changing the inline style of the anchor tag with the id of button_facebook. It takes a second to load so I'm trying to first check to see if its loaded.I'm trying to do this by setting an interval every second to see if its loaded however it doesn't work. I think it has something to do with the fact that an entire new page is written from within my page a couple seconds after my page is fully loaded.
If you open up the code inspector then locate button_facebook and search your way up you'll notice the new <html><head> and <body> tags complete independent of my own.
I need some help fixing this.