/    Sign up×
Community /Pin to ProfileBookmark

WOW some REALLY indepth questions for anyone up for the challange!

Ok, this thread is gonna be long, so sorry about that up front.
Let me clue you in as to what I’m doing. You’re gonna ask “why?”, but the answer is even better…Why not?
I’m creating a “game” of sorts using HTML and maybe a few other odds as I discover them. My questions are good ones I feel…so here goes.
#1: This folder is gonna be HUGE! I’m going to burn it to disc and run it from the D drive. That being said, there won’t be any real way to save it once the game is in progress. So I had this idea, I’ll use the floppy drive as a Memory card of sorts. Is there a way to program HTML to have the browser “save” an HTML page to the A drive by clicking on a link or icon or something like that? All it would need to do is save the URL, but the whole page would be nice.
#2 Is there a way to program through HTML to disable the Back/Forward buttson on IE? I really don’t see this game going anywhere else except to the girlfriend that I’m creating it for. – lol
#3 Here’s a GOOD one… Is there a way to create a pop-up window with the size that I set and not the browser? Let’s say all I wanted was a little box to pop up and ask “Are you Sure?” It would’nt need to be big at all! Part 2 to this question is… In said little window, is there a way to click on…Let’s say “Yes” or “No” and have it close and change the previous window, or the Game Window as I’m dubbing it…?
And Finally… Is there a way to have IE make a sound upon clicking a link WITHOUT having to go into Windows to set a sound?

I know that this is going to be intense to work on, but I LOVE a good challange and this would be SUPER cool if I could actually do those features… I thank ANYONE that takes the time to answer this… Oh and if you can either direct me to code or just send it to my email ([email protected]), there again, I’d be in SOMEONES debt…. Thanks again!

-Chane

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@misteralexanderMay 05.2005 — My questions are good ones I feel...so here goes.[/QUOTE]

First & Foremost, there is no such thing as a stupid question . . . but there do seem to be allot of inquisitive idiots. You're not an idiot, don't worry. Anyway. [U]YES![/U] You can do [U]ALMOST[/U] all of that with [I]Javascript[/I] not HTML. Sorry. But there's still good news. I'm reading "[URL=http://www.amazon.com/exec/obidos/tg/detail/-/0672324067/qid=1115251646/sr=8-2/ref=sr_8_xs_ap_i2_xgl14/103-7654888-5102205?v=glance&s=books&n=507846]Sam's Teach Yourself Javascript in 24hours[/URL] " and allot of those answers are in there (pop-ups / no back button / and such) but some of those other things seem as though they may require a programming language, maybe something as simple as BASIC. I'm not sure about that though.

Oh and if you can either direct me to code or just send it to my email[/quote]

You'll never learn anything if you're just told. As I've known for years & I'm learning everyday . . . JAVASCRIPT is your bestest friend. It's power is only limited by your creativity.
Copy linkTweet thisAlerts:
@EternityMay 05.2005 — Okay. Im not very good at this. So I apologise in advance. The popup window thing I can do though.

<a href="#" onClick="window.open('type the popups htm here','type the target htm here','width=50,height=50,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0');">

Javascript window.</a>

I think I found that on webmonkey. Theyre pretty good.

So is javascript city, dynamic drive, and hypergurl. Ive never ever heard of anything that lets ya disable the back button. The closest is a script that says the page cant be displayed and you havto resubmit the data, like they have on banks n stuff, I believe, but I could be wrong.
Copy linkTweet thisAlerts:
@EternityMay 05.2005 — ohh I can do sound effects too.

<HTML>

<HEAD>

<!-- --><bgsound id="soundfiles">

<script language="JavaScript"><!--

var aySound = new Array();

aySound[0] = "Techno.wav";


IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;

NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;

ver4 = IE||NS? 1:0;

onload=auPreload;

function auPreload() {

if (!ver4) return;

if (NS) auEmb = new Layer(0,window);

else {

Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";

document.body.insertAdjacentHTML("BeforeEnd",Str);

}

var Str = '';

for (i=0;i<aySound.length;i++)

Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"

if (IE) auEmb.innerHTML = Str;

else {

auEmb.document.open();

auEmb.document.write(Str);

auEmb.document.close();

}

auCon = IE? document.all.soundfiles:auEmb;

auCon.control = auCtrl;

}

function auCtrl(whSound,play) {

if (IE) this.src = play? aySound[whSound]:'';

else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))

}

function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }

function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }

//--></script>

<!-- -->



</HEAD>

<BODY>

<IMG SRC="pic.gif" onClick="playSound(0)">



</BODY>

</HTML>



Youll need to put your audio file name up at near the top of the javascript, where it says techno.wav and save it in the same file on your server but you knew that already... erm. Just change the image thing to a link n it should work just the same i hope.
Copy linkTweet thisAlerts:
@ChanefedauthorMay 05.2005 — WOW! All great answers and ALL of them worked. I even ordered the book! Thanks! Anyone have any idea about the "Memory Card" theory I have? OH! and I have ANOTHER good question.

In a pop up window, let's say my "Are you sure, yes or no" window. When I click an image/link and go on targeting a previous window, is it possible to make the pop-up window close after clicking on the link? I hope that this is clear enough, I dunno how else to explain it... - Thanks again!
Copy linkTweet thisAlerts:
@JordanwebMay 05.2005 — maybe you could use a onClick command within the javascript?
Copy linkTweet thisAlerts:
@ChanefedauthorMay 05.2005 — I tried the onclick="window.close" command, but I think it can't decide which one to do so it does the first one it comes to. So if I establish a link first then the window stays open. But even when I switch it around, no close..mayby I'm not using the command correctly?
×

Success!

Help @Chanefed spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...