mam okienka ifarme jak najadę na odnośnik text.
Czy jest możliwość zamiany <a href="..... na zwykly text ?
Nie chcę odnośnika. Potrzebuję tylko takie okienko kiedy najadę na dany text.
document.getElementById("myframe").src=url;
czy jest możliwość zmiany src=adres i potem używać <div id="xxx" adres="forum.php.pl" ?
Html :
JS:
function loadintoIframe(url){ if (document.getElementById) document.getElementById("myframe").src=url; } function boxhtIn() { document.getElementById('boxht').style.display = 'inline'; } function boxhtOut() { document.getElementById('boxht').style.display = 'none'; } function boxht3In() { document.getElementById('boxht3').style.display = 'inline'; } function boxht3Out() { document.getElementById('boxht3').style.display = 'none';
CSS:
#myframe { position: fixed; width: 35%; height: 65%; } #boxht{ display: none; position:fixed; z-index: 100; width: 35%; height: 65%; top:16%; left:60%; padding-bottom:0px; border: 2px solid #dfdfdf; -moz-border-radius: 10px 10px 10px 10px; -webkit-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px; background:#ffffbb; } .cint:before, .cint:after { content: ""; display: block; position: absolute; } .cint:before { z-index: 110; bottom:-40px; left:-30px; height:79px; width:85px; background-image:url(../img/piedra2c.png); -webkit-transform: rotate(-50deg); -moz-transform: rotate(-50deg); transform: rotate(-50deg); } .cint:after { z-index: 110; top: -42px; right:-20px; width: 93px; height:80px; background-image:url(../img/piedra1.png); -webkit-transform: rotate(-12deg); -moz-transform: rotate(-12deg); transform: rotate(-12deg); } @media only screen and (max-width:750px), handheld { .cint:before { background-image: none } .cint:after { background-image: none } #boxht {width: 0; height: 0} #myframe {width: 0; height: 0} }