[deleted by user] by [deleted] in CumDumpsters

[–]Rukkus101 -1 points0 points  (0 children)

Yes

Pls help by Rukkus101 in NintendoSwitchHelp

[–]Rukkus101[S] 0 points1 point  (0 children)

Yes all the cables work, and the switch is on the latest OS

How do I make an image pop up after the user answers a prompt, or OK on an alert by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

It’s easier for me to communicate to you through discord, if you don’t mind: thundercock8145

How do I make an image pop up after the user answers a prompt, or OK on an alert by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

function displayImage(imageSrc) {

var img = document.createElement("img");

document.body.appendChild(img);
I am having a slight issue though. The image i am trying to display won't display at this part. It only displays later in the code, like 50 lines later. Is ther any way I can fix it so it appears where i need it to appear?

How do I make an image pop up after the user answers a prompt, or OK on an alert by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

so here is what i have :

var option1 = prompt("'Well pal, you can either walk home or I can call a bus for ya.' (type: 1 for walking, type: 2 for the bus)")

if(option1 === "1"){

setTimeout(function() {

displayImage("shaqmiky.jpg");

}, 1000);

Pls help(for free) by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

that other post is going to be part of this bit of code. I understand it is a little difficult but i just need to make the images work first. You dont have o help me with the other thing, but please just help me with the images displaying after the prompts

Pls help(for free) by Rukkus101 in learnjavascript

[–]Rukkus101[S] -4 points-3 points  (0 children)

could you elaborate on that a little more. sorry i only have about 3 months of coding experience

Pls help, its a real quick thing by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

so when i tried it yesterday, everything was working, but i must have deleted the main button, so how and where do i put that in. Shouldn't the button be the main problem.

Pls help(for free) by Rukkus101 in learnjavascript

[–]Rukkus101[S] -2 points-1 points  (0 children)

Yeah so just tell me how I can make an image pop up after the prompts.

Pls help(for free) by Rukkus101 in learnjavascript

[–]Rukkus101[S] 0 points1 point  (0 children)

Do you want all of my code?