Can anyone post me a working example for the folowing:
there is a date-const. If systemdate > date-const then it must open URL-1 and in case systemdate < date-const then it must open URL-2.
I want to put this html page (with other newsletter stuff) into an e-mail and receivers need to be able to work with those button.
I did it in Basic but it was not workin in the e-mail but in html it worked properly. Seem e-mails are limited by Basic script and i hope it's not limited with Java either.
<SCRIPT LANGUAGE="VBScript">
<!--
const datExp = #31-12-2009#
const ePdf = "http://www.a.pdf"
Sub Button1_OnClick
if datExp < now() then
open(ePdf)
elseif datExp > now() then
open("http://www.a.com#Art1")
end if
End Sub
-->
</SCRIPT>
<!--
const datExp = #31-12-2009#
const ePdf = "http://www.a.pdf"
Sub Button1_OnClick
if datExp < now() then
open(ePdf)
elseif datExp > now() then
open("http://www.a.com#Art1")
end if
End Sub
-->
</SCRIPT>
The script was called by:
<FORM>
<INPUT NAME="Button1" TYPE="BUTTON" VALUE="Read more" class="buttons">
</FORM>
<INPUT NAME="Button1" TYPE="BUTTON" VALUE="Read more" class="buttons">
</FORM>
Add Comment
[language] [/language]
Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]
See here for supported languages.
Javascript must be enabled to submit anonymous comments - or you can login.