1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Embedding Javascript in Drupal page

Discussion in 'Drupal' started by techman41973, Apr 1, 2013.

  1. #1
    I'd like to be able to use a countdown timer in the form of a Java applet.
    Is there a way to implement java code in a drupal page?
    I'd prefer to integrate the code into a block.
    Thanks
     
    techman41973, Apr 1, 2013 IP
  2. duckz

    duckz Active Member

    Messages:
    245
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #2
    if it is going to be in a block, you can create a new custom block via GUI, choose php or full html input filter and paste in the java applet html code there.

    or more advanced way is to create a custom block via GUI and create a block.tpl.php for it and put in the java applet html code in the template.

    or for Drupal rockstar.... create a custom module and invoke all the hooks and alter to create a new custom block and print the html code from the module.
     
    duckz, Apr 2, 2013 IP