wingers
07-27-2007, 02:09 PM
Just doing a very basic coding change for my old man need a little help.
Have changed the web page perfectly, but i need the web page to come up in a new window, below is copy of current script. Have trid all the _blank stuff, but i must be missing something. Have highlighted web page link in blue. Please note this is custom page supplied by software company for users to change for own use.
<html>
<head>
<title>Body</title>
<script language=javascript>
// Load text from resource file
function window_onload() {
var d = new Date()
document.all.lblEvents.innerText = objLang.LoadStringHTML(4031)
document.all.lblAddUser.innerText = objLang.LoadStringHTML(4032)
// Removed link buy and replace with customised page
document.all.lblBuy.innerText = objLang.LoadStringHTML(5900)
document.all.lnkBuy.href = "http://www.110uk.co.uk/index.html"(5901)
document.all.lnkBuy.title = objLang.LoadStringHTML(5900)
document.all.lblWatch.innerText = objLang.LoadStringHTML(5902)
document.all.lnkWatch.href = objLang.LoadStringHTML(5903)
document.all.lnkWatch.title = objLang.LoadStringHTML(5904)
document.all.lblDocs.innerText = objLang.LoadStringHTML(4040)
if ((objLang.LoadStringHTML(10) != "ENU") || (Math.abs(d.getTimezoneOffset() / 60) > 1))
{
document.all.idBuy.style.display = 'none';
}
if (objLang.LoadStringHTML(10) != "ENU")
{
document.all.idWatch.style.display = 'none';
}
}
function RolloverOn(theid) {
document.getElementById(theid).src = theid + ".png";
document.getElementById("lbl" + theid).style.color = "#3D5A8D";
}
function RolloverOff(theid) {
document.getElementById(theid).src = theid + "off.png";
document.getElementById("lbl" + theid).style.color = "#7A838A";
}
</script>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor="White"
style="background: url(Net2 Background.gif) no-repeat bottom right fixed"
language=javascript onload="return window_onload()">
<table id="iconTable">
<tr>
<td><a href="action:ViewEvents"><img id="Events" onmouseover="RolloverOn('Events')" onmouseout="RolloverOff('Events')" src="eventsOff.png" /></a><p id="lblEvents">lblEvents</p></td>
<td><a href="action:AddUser"><img id="AddUser" onmouseover="RolloverOn('AddUser')" onmouseout="RolloverOff('AddUser')" src="addUserOff.png" /></a><p id="lblAddUser">lblAddUser</p></td>
<td id="idBuy"><a href="lnkBuy" id="lnkBuy" target="_blank" title="lnkBuy"><img id="Buy" onmouseover="RolloverOn('Buy')" onmouseout="RolloverOff('Buy')" src="BuyOff.png" /></a><p id="lblBuy">lblBuy</p></td>
<td id="idWatch"><a href="lnkWatch" id="lnkWatch" target="_blank" title="lnkWatch"><img id="Watch" onmouseover="RolloverOn('Watch')" onmouseout="RolloverOff('Watch')" src="watchOff.png" /></a><p id="lblWatch">lblWatch</p></td>
<td><a href="action:ApplicationNotes"><img id="Docs" onmouseover="RolloverOn('Docs')" onmouseout="RolloverOff('Docs')" src="docsOff.png" /></a><p id="lblDocs">lblDocs</p></td>
</tr>
</table>
</body>
</html>
<object
id=objLang
width=0 height=0
classid="clsid:71F9D5FF-4E75-11D3-A32A-0080C8FC2F61"
style="display:none">
</object>
Thanks very much for any pointers!
Have changed the web page perfectly, but i need the web page to come up in a new window, below is copy of current script. Have trid all the _blank stuff, but i must be missing something. Have highlighted web page link in blue. Please note this is custom page supplied by software company for users to change for own use.
<html>
<head>
<title>Body</title>
<script language=javascript>
// Load text from resource file
function window_onload() {
var d = new Date()
document.all.lblEvents.innerText = objLang.LoadStringHTML(4031)
document.all.lblAddUser.innerText = objLang.LoadStringHTML(4032)
// Removed link buy and replace with customised page
document.all.lblBuy.innerText = objLang.LoadStringHTML(5900)
document.all.lnkBuy.href = "http://www.110uk.co.uk/index.html"(5901)
document.all.lnkBuy.title = objLang.LoadStringHTML(5900)
document.all.lblWatch.innerText = objLang.LoadStringHTML(5902)
document.all.lnkWatch.href = objLang.LoadStringHTML(5903)
document.all.lnkWatch.title = objLang.LoadStringHTML(5904)
document.all.lblDocs.innerText = objLang.LoadStringHTML(4040)
if ((objLang.LoadStringHTML(10) != "ENU") || (Math.abs(d.getTimezoneOffset() / 60) > 1))
{
document.all.idBuy.style.display = 'none';
}
if (objLang.LoadStringHTML(10) != "ENU")
{
document.all.idWatch.style.display = 'none';
}
}
function RolloverOn(theid) {
document.getElementById(theid).src = theid + ".png";
document.getElementById("lbl" + theid).style.color = "#3D5A8D";
}
function RolloverOff(theid) {
document.getElementById(theid).src = theid + "off.png";
document.getElementById("lbl" + theid).style.color = "#7A838A";
}
</script>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor="White"
style="background: url(Net2 Background.gif) no-repeat bottom right fixed"
language=javascript onload="return window_onload()">
<table id="iconTable">
<tr>
<td><a href="action:ViewEvents"><img id="Events" onmouseover="RolloverOn('Events')" onmouseout="RolloverOff('Events')" src="eventsOff.png" /></a><p id="lblEvents">lblEvents</p></td>
<td><a href="action:AddUser"><img id="AddUser" onmouseover="RolloverOn('AddUser')" onmouseout="RolloverOff('AddUser')" src="addUserOff.png" /></a><p id="lblAddUser">lblAddUser</p></td>
<td id="idBuy"><a href="lnkBuy" id="lnkBuy" target="_blank" title="lnkBuy"><img id="Buy" onmouseover="RolloverOn('Buy')" onmouseout="RolloverOff('Buy')" src="BuyOff.png" /></a><p id="lblBuy">lblBuy</p></td>
<td id="idWatch"><a href="lnkWatch" id="lnkWatch" target="_blank" title="lnkWatch"><img id="Watch" onmouseover="RolloverOn('Watch')" onmouseout="RolloverOff('Watch')" src="watchOff.png" /></a><p id="lblWatch">lblWatch</p></td>
<td><a href="action:ApplicationNotes"><img id="Docs" onmouseover="RolloverOn('Docs')" onmouseout="RolloverOff('Docs')" src="docsOff.png" /></a><p id="lblDocs">lblDocs</p></td>
</tr>
</table>
</body>
</html>
<object
id=objLang
width=0 height=0
classid="clsid:71F9D5FF-4E75-11D3-A32A-0080C8FC2F61"
style="display:none">
</object>
Thanks very much for any pointers!