Guest User

Untitled

a guest
Jan 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. wv.loadUrl("<style>.featured {"+
  2. " background-image: -ms-linear-gradient(bottom, #F9F6F9 0%, #ECE4F4 100%);"+
  3. " background-image: -moz-linear-gradient(bottom, #F9F6F9 0%, #ECE4F4 100%);"+
  4. " background-image: -o-linear-gradient(bottom, #F9F6F9 0%, #ECE4F4 100%);"+
  5. "background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #F9F6F9), color-stop(1, #ECE4F4));"+
  6. " background-image: -webkit-linear-gradient(bottom, #F9F6F9 0%, #ECE4F4 100%);"+
  7. " background-image: linear-gradient(to top, #F9F6F9 0%, #ECE4F4 100%);"+
  8. "}");
  9.  
  10. WebView webview = (WebView) findViewById(R.id.abtus_webView);
  11. webview.loadUrl("file:///android_asset/index.html");
  12.  
  13. <img src="file:///android_asset/images/abc.png">
  14.  
  15. wv.loadUrl("javascript:(function() { " +
  16. "var divs = document.getElementsByClassName('free');"+
  17. "for(var i=0; i<divs.length; i++)"+
  18. "{"+
  19. "divs[i].style.backgroundImage='-webkit-gradient(linear, left bottom, left top, color-stop(0, #FFFFFF), color-stop(1, #EFD2E4))';"+
  20. "}"+
  21. "})()");
Add Comment
Please, Sign In to add comment