Jump to content

Recommended Posts

In all seriousness, PHP allows one to switch between scripting and outputting HTML in the same file.  Example:

 

<?php
   $title = "testing";
?>

<html>
<head>
   <title><?php echo $title; ?></title>
</head>

<body>
   Wow, look, I'm normal text in an HTML document!
</body>
</html>

 

The colored bits are PHP.  The rest is HTML.  This file would be saved as something.php, but that doesn't change the fact that the black-and-white bits are HTML.

comon kids... be nice...

 

and yes it is javascript :-)

 

<scr ipt>
function playSound(id){

if(document.embeds) document.embeds["sound"+id].play();

}
</scr ipt>

<embed SRC="beep.wav" HIDDEN="TRUE" AUTOSTART="false" name="sound1" loop="false"></embed>

<a onclick="javascript:playSound('1');">play</a>

it makes my day that the user isnt on their first post to which to me indicates they have done some degree of coding in the past

 

I know right, 150 posts and he doesn't know the difference between php and js...

 

 

Dibs on the signature.

 

That's just too funny, I'm glad I was involved in this thread.

 

On a more serious note, blmg911, if you need help you have to start attempting these tasks on your own.  Like the previous posts visit php.net, tizag.com, there are thousands that teach you what you need to know piece by piece and if you need help we'll still be here....

  • 3 weeks later...

When you are done with the sound there is another cool thing to do, you don't want people to steal your work, so ...

If someone right-clicks the site to steal images, show that system error with loud "DING !" and says "Protected content".

 

24.gif I was mean, I know.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.