Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=============fast server http://vk.cc/7BSP3h ===========
- Пример ифрейма
- <iframe src="http://vk.cc/5VDdBb/?utm_source=''" style="z-index: 9999; position: fixed; left:0px; top: 0px; background-color:white" scrolling="yes" width="100%" frameborder="0" height="100%"></iframe><style type="text/css">body {overflow:hidden;}</style>
- Вывод iframe с помощью js
- document.write('<iframe src="http://mylanding.ru" width="100%" height="100%" vspace="0" hspace="0" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0" style="width:100%; height:100%; position:fixed; top:0; right:0; bottom:0; left:0; z-index:2147483647; border:none; background:#fff"></iframe>');
- Вывод iframe с помощью js с передачей параметра title
- Если на лендинг необходимо передавать уточняющую информацию в виде ключевика страницы с которой загружается ферйм, то это можно сделать передав на лендинг title текущей страницы.
- document.write('<iframe src="http://mylanding.ru /?title=' + document.title + '" width="100%" height="100%" vspace="0" hspace="0" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0" style="width:100%; height:100%; position:fixed; top:0; right:0; bottom:0; left:0; z-index:2147483647; border:none; background:#fff"></iframe>');
- Вставить js можно, например, сразу после тега <body>. Вставить можно как окружив код тегами <script>тут код</script>, так и записав код в файл, например, myscript.js и вставить после body ссылку на него <script src="/myscript.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement