Iframe Link

[[include include:iframe-link url=rtsp://webtv.wien.gv.at/wienat/ma51/rm/sommerrodelbahn-150k.rm | text=Toboggan run | append=in Vienna]]

<html>
 <head><title>Iframe Link</title>
  <style type="text/css">
   @import url("http://www.wikidot.com/common--theme/base/css/style.css");
  </style>
 </head>
 <body>
  <script type="text/javascript">
   document.write('URL: ' + document.URL + '<br>');
   document.write('URL unesc: ' + unescape(document.URL) + '<br>');
 
   // (…#) url # text # prepend # append (#…)
   var params = /^[^#]*#([^#]*)#?([^#]*)#?([^#]*)#?([^#]*)#?.*$/;
   var match = params.exec(unescape(document.URL));
document.write('match[1]: ' + match[1] + '<br>');
document.write('match[2]: ' + match[2] + '<br>');
document.write('match[3]: ' + match[3] + '<br>');
document.write('match[4]: ' + match[4] + '<br>');
   if (match[1]) {
    var url = match[1];
    var text = url;
    var prepend = '';
    var append = '';
 
    var target = '_parent';
    if (url.charAt(0) == '*') {
     url = url.substr(1);
     target = '_blank';
    }
 
    if (match[2] && match[2] != '{$text}')
     text = match[2];
    if (match[3] && match[3] != '{$prepend}')
     prepend = match[3] + ' ';
    if (match[4] && match[4] != '{$append}')
     append = ' ' + match[4];
 
document.write('url: ' + url + '<br>');
document.write('code: ' + 'href="' + url +'" target="' + target + '" <br>');
    document.write(prepend + '<a href="' + url +'" target="' + target + '">' + text + '</a>' + append);
   }
  </script>
  <noscript>
   <p>Your browser either does not support JavaScript, or you have JavaScript turned off.</p>
  </noscript>
 </body>
</html>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-NoDerivs 3.0 License