0

I am trying to make a small piece of code that will let the user type a web adress in an input/popup dialog and then show it in an iframe.However what happens if that adress has animations in it?For instance google ads or banners that will be constantly animated?Would it be possible somehow to stop the animations show that there is something like a plain picture of the site or capture a screenshot of it and save it for display later?

Rrjrjtlokrthjji
  • 602
  • 2
  • 10
  • 26
  • You could stick a `while(1)` in it, but that would kind of freeze up everything, not just the animations :p – Niet the Dark Absol Feb 10 '12 at 21:39
  • why stop the animations? they'll load and animate, what's your question? – JKirchartz Feb 10 '12 at 21:43
  • We're not sure what you're trying to achieve - the address doesn't have animations in it, the page that it points to does; just like people don't live in the address, but in the home at that address. Why do you need this? – avramov Feb 10 '12 at 21:51

1 Answers1

0

If you use java java.awt.Robot class do the work, for more informations, take a look at the methods that it offer here http://docs.oracle.com/javase/1.3/docs/api/java/awt/Robot.html Otherwise, there's this post that can help you: JavaScript code to take a screenshot of a website without using ActiveX Hope that helps

Community
  • 1
  • 1
Oueslati Bechir
  • 962
  • 2
  • 10
  • 15