Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

General • Re: Background image on radvert.html

$
0
0
Hi all, I fixed a bit the script as below.
I wonder if someone can test and tell me what is wrong.
I don't get to see an image on this one while the file is running on the mikrotik, when running on the PC is fine. On the mikrotik is like the path for the image is wrong.
I added the image in all the folders just in case and also changes the path on the script each time but still the same.
To me the script looks fine, just wondering if someone could help. Attached are the hotspot files that they show the location of the image.
This is the radvert.html that pops up when setting advertisement on the hotspot.
Thank you in advance :)

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="2; url=$(link-orig)">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<title>mikrotik hotspot > advertisement</title>
<style type="text/css">
<!--
textarea,input,select {
background-color: #FDFBFB;
border: 1px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

body {
background-image: url('EX.gif');
background-color: #ADD8E6;
color: #000000;
font-size: 12px;
font-family: verdana;
}

a, a:link, a:visited, a:active {
color: #000000;
text-decoration: none;
font-size: 12px;
}

a:hover {
border-bottom: 1px dotted #c1c1c1;
color: #000000;
}

img {
border: none;
}

td {
font-size: 12px;
color: #000000;
}
-->
</style>
<script language="JavaScript">
<!--
var popup = '';
function openOrig() {
if (window.focus) popup.focus();
location.href = unescape('$(link-orig-esc)');
}
function openAd() {
location.href = unescape('$(link-redirect-esc)');
}
function openAdvert() {
if (window.name != 'hotspot_advert') {
popup = open('$(link-redirect)', 'hotspot_advert', '');
setTimeout("openOrig()", 1000);
return;
}
setTimeout("openAd()", 1000);
}
//-->
</script>
</head>
<body onLoad="openAdvert()">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle"style="font-size: 70px">
Would you like to continue browsing?
<br><br>
<a href="$(link-redirect)" target="hotspot_advert" align="center" valign="middle"style="font-size: 70px">YES</a>
<br>
</td>
</tr>
</table>
</body>
</html>

Statistics: Posted by mikedod — Tue Feb 27, 2024 1:54 pm



Viewing all articles
Browse latest Browse all 15133

Trending Articles