ID:189351
 
I'm making a website useing Flash and after I made all my pages I would like to connect them. I don't want to start learning the whole ActionScript thing, I just need the command that takes you too a different page.

Another question I have is, what is that java script command that makes an alert box pop up, and what is the command to stop right clicking.

If anybody knows the anwser to these questions or would like to post a link with the anwsers your help your help would be greatly appreaciated.

P.S. I know this isn't anything about BYOND, but hey, that's what Off-Topic is for ^_^

[edit]
I figured out how to do the Flash thing!!! So you don't have to anwser to that
[edit]
<SCRIPT LANGUAGE="JavaScript">
/*
This will make a pop-up, that will only ever pop-up once while tha person is viewing your site, i made this because personally, i hate pop-ups. Just place this in the page that you want it to pop-up into.Don't worry this writing here wont affect it, =p - Evil Guy
*/


//number of days the cookie should
//last (0 will cause it to always pop up)
var expDays = 1;

//url of the page you want to popup
var page = "http://?"; //<font color = red>IMPORTANT: replace '?' with your pop-up page with the info on it, other wise you pop-up page, wont "pop up", duh!</font>

var windowprops = "width=650, height=500, location=yes, toolbar=no, menubar=no, scrollbars=yes, resizable=yes";

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;

while (i < clen) {
var j = i + alen;

if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);

i = document.cookie.indexOf(" ", i) + 1;

if (i == 0) break;

}

return null;

}

function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");

}

function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}

var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function amt(){
var count = GetCookie('count')

if(count == null) {
SetCookie('count','1')
return 1
} else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count

}

}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}



function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
window.open(page, "", windowprops);
} else {
count++;
SetCookie('count', count, exp);
}

}

window.onload=checkCount
</script>
In response to Evil Guy
<script language="JavaScript">

<!--

/*

This script will prevent users on your site from using right click, when they try to, it will show them the message below. - Evil Guy

*/



var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";



// Don't edit below!



function click(e) {

if (document.all) {

if (event.button == 2) {

alert(message);

return false;

}

}

if (document.layers) {

if (e.which == 3) {

alert(message);

return false;

}

}

}

if (document.layers) {

document.captureEvents(Event.MOUSEDOWN);

}

document.onmousedown=click;

// -->



</script>
In response to Evil Guy
oh yeah evil dude... wat about byond popers

do u know the coding for that.. if yes do u mind reviewing because ..i have made my poing but it pops 3 or more times lol its a free poper

- Nelly
In response to Evil Guy
sorry Goz, (or nelly, or whatever, lol)
i don't know what you mean by 'BYOND poppers', if you mean the advertisements of other peoles hub entries, its not my place to change that. But, if thats not what yu meant at all, then can you please re-word.

-Evil Guy-
In response to Evil Guy
Well, thank you very much. That's definetly very useful and I can use it to study Java a little. But I just want a simple alert box :/. Like those in BYOND, only in Java. But thank you anyways ^_^
In response to Evil Guy
lol jack guy
...dont worry .. i fixed my own errors and this is why people asking me help..i just tested ur knowledge

-Nelly