jquery - link another html on the same page (javascript) -


I want to link another html (nytimes.html) to the same page at the top of this CSS popup frame. How do I do that?

  $ ('portfolio-thumbnail'). Click (function (e) {console.log (this.id); // We know what loads in frame $ ('# popup-frame'). Fadein (); switch (this.id) {case "nytimes": // nytimes $ ( '# popup-frame or something'). Css ( 'background', "rgba (0, 255,0, .5)"); break; case "eloquent" : $ ('# Popup-frame'). CSS ('background', 'RGBA (255, 82, 145, .5) "; break; default; break;}});  

I personally embed an IFFRE in your CSS-popup with the site I would like to show you that I

  get something for "nytimes": // nytimes $ ('# popup-frame'). Css ('background', "rgba (0, 255,0, .5)"); $ ('#Popup-frame') Html ( '& lt; iframe src = "nytimes.html" name = "Popapfrem" scrolling = "auto" Fremberd = "no" align = "center" height = "100%" width = "100%" & gt; & Lt; / iframe & gt; '); Break;  

If you want to slow down the "preview" of the page, you can styling the iframe to include the use of CSS properties on the iframe to shorten the content.


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -

python - Django Custom Admin Block For center of admin -