The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Can Someone help me make a page like this?

View previous topic View next topic Go down

Can Someone help me make a page like this?

Post by apero92 on September 9th 2011, 5:13 pm

http://www.avrilbandaids.com/voteomatic/

I am trying to make one for my site andygrammernation.com to help for for his song Keep Your Head Up and I wasn't sure if anyone would like to help me. I have the script I believe, or at least what I copied from inspecting the element on google but if anyone would like to help me or at least direct in the right direction of what to change that would be amazing! Smile

Thanks!

Here is the code -

<html><head>
<title>Mediabase 24/7 - Stations Playlist Request</title><script language="JavaScript">
<!--
function openWin(url,wid,hgt) {
var topSet = (this.window.screen.availHeight - hgt)/2;
var leftSet = (this.window.screen.availWidth - wid)/2;
var myWin=window.open(url,"style","status=no,scrollbars=yes,width="+wid+",height="+hgt+",top="+topSet+",left="+leftSet+",scrollbars=no");
}

function ValidateInput()
{
if (document.form01.username.value == '')
{
alert('The Name Box cannot be Blank!');
return false;
}
else if (document.form01.captchacode.value == '')
{
alert('Please remember to enter Confirmation Code!');
return false;
}
else
{
return true;
}
}

function findtheone()
{
var nMaxAllowed = 5;
var nCount = 0;
var whichitem = 0;
while (whichitem < document.form01.elements.length)
{
if(document.form01.elements[whichitem].checked)
{
nCount++;
if(nCount > nMaxAllowed)
{
document.form01.elements[whichitem].checked = false;
window.alert ('You can only select up to ' + nMaxAllowed + ' songs' );
}
}
whichitem++;
}
}

function RefreshImage(valImageId)
{
var objImage = document.images[valImageId];
if (objImage == undefined) { return; }
var now = new Date();
objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}

//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">
<!--
*
{
margin: 0px;


}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
<script type="text/javascript">
function desabilitaMenu(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}

function desabilitaBotaoDireito(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}

if ( window.Event )
document.captureEvents(Event.MOUSEUP);
if ( document.layers )
document.captureEvents(Event.MOUSEDOWN);

document.oncontextmenu = desabilitaMenu;
document.onmousedown = desabilitaBotaoDireito;
document.onmouseup = desabilitaBotaoDireito;
</script>


<script type="text/javascript">
/* <![CDATA[ */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12328789-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

/* ]]> */
</script>
</head><body>
<div id="alert" onMouseOver="RefreshImage2('imgCaptcha')" class="alert" style="position: absolute; background: none repeat scroll 0% 0% rgb(255, 255, 255); width: 275px; height: 150px; top: 1px; left: -3px; font-size: 36px; font-weight: bold;">
<div align="center"><br>VOTE</div></div>
<script>
function RefreshImage2(valImageId) {
document.getElementById( "alert" ).style.display = "none";

var objImage = document.images[valImageId];
if (objImage == undefined) { return; }
var now = new Date();
objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();


}</script>


<form style="margin-top: -5px;" name="form01" method="post" action="http://www.mediabase.com/mmrweb/7/stationplaylistrequest.asp" onSubmit="return ValidateInput();">







<br>

<table style="margin-top: -10px;">
<tbody><tr><td>


<input size="6" name="song1" value="Avril Lavigne - What The Hell" type="hidden">
<input size="6" name="song2" value="" type="hidden">
<input size="6" name="song3" value="" type="hidden">
<input size="6" name="email" value="" type="hidden">
<input size="6" name="community" value="" type="hidden">
<input size="6" name="message" value="" type="hidden">
<input size="6" name="zip" value="" type="hidden">
<input size="6" name="sex" value="null" type="hidden">
<input size="6" name="age" value="0" type="hidden">
<input size="6" name="" value="" type="hidden">




</td></tr>



<tr><td><strong>N</strong><b>ame:</b><br> <input name="username" size="25" type="text"> </td></tr>


<tr>
<td> <img id="imgCaptcha" src="http://www.mediabase.com/mmrweb/include/captcha.asp" /><br> <a href="javascript:void(0)" onClick="RefreshImage('imgCaptcha')">Change Code/ Mudar Código </a> <br>
<br> Enter the code / Digite a palavra-chave:<br>
<input name="captchacode" type="text" id="captchacode" size="25">
<input type="submit" value="Submit" size="25" alt="Submit">
<br> <br>






<!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE --->





<input onClick="findtheone()" id="LAVIWTH" name="Songcode" value="LAVIWTH+" checked="checked" type="CHECKBOX">



<input size="6" name="c_let" value="WVYB-FM" type="hidden">

<!--

<input id="LAVIWTH" name="Songcode" value="LAVIWTH+" type="CHECKBOX" checked>

-->

<!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE ---> <!--- AREA VOTE --->















</td></tr>

</tbody></table>
</form>




<script type="text/javascript">
//<![CDATA[
window.__CF=window.__CF||{};window.__CF.u="/cdn-cgi/async/cf/uri/";window.__CF.p="3a/085a026bbedead955db270ac52f4ac";window.__CF.o=1;window.__CF.c=1;(function(){var a=document,b=a.createElement("script");b.src="//ajax.cloudflare.com/cdn-cgi/nexp/v=918368360/cf_tools.min.js";b.setAttribute("async","true");a=a.getElementsByTagName("script");a=a[a.length-1];a.parentNode.insertBefore(b,a)})();
//]]>
</script></body></html>

The there is this one - avrilontheradio.calnteam.com/voteomatic/

I would be much appreciative if someone would help me Smile thanks!

apero92
New Member

Posts : 10
Reputation : 0
Language : English

Back to top Go down

Re: Can Someone help me make a page like this?

Post by DarkBlade on September 10th 2011, 5:09 pm

I dont understand, Is the page not workiing? Because you have the code all you have to do is add it.

DarkBlade
Forumember

Posts : 206
Reputation : 14
Language : English

Back to top Go down

Re: Can Someone help me make a page like this?

Post by Guest on September 10th 2011, 8:03 pm

I don't think many people are going to help you with code you ripped from another site.

I certainly won't.

Guest
Guest


Back to top Go down

Re: Can Someone help me make a page like this?

Post by Polka-Dot-Heart on September 10th 2011, 9:41 pm

@dion wrote:I don't think many people are going to help you with code you ripped from another site.

I certainly won't.
I agree, I certainly won't help either because you got it from another site and that's bad. So you will have to wait until someone else wants to help you.

Polka-Dot-Heart
Forumember

Female Posts : 135
Reputation : 16
Language : English

Back to top Go down

Re: Can Someone help me make a page like this?

Post by MrMario on September 10th 2011, 9:57 pm

Stealing/Copy code is a serious warning here. Don't do it!

=> Locked

MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1830
Language : test

http://test.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum