sound in minimatica

Viewing 9 posts - 1 through 9 (of 9 total)
  • #5760
    seiperseo36o
    Participant

    you can put a sound in the home when they move the pictures? that is, when I pass the mouse over one of four pictures and wipes can put a little sound?

    #5773
    gavintfn
    Participant

    its not too bad… but.. here it is first, lets assume you want the same sound each time….

    find the sound you want…. lets say it is “sound.wav” if you are famillar with uploading files, upload via ftp, and get the url.. write it down…

    if not, upload through wordpress media tab, add new, upload sound….write down full url…

    next go to your dashboard, hover with mouse over appearance, click on editor…

    look at the right, you will see a list of files… look for header.php…click on it…

    look for <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />

    go to the end of it, hit enter, add this code….


    <script language="javascript" type="text/javascript">
    function hoverSound(soundfile) {
    document.getElementById("soundload").innerHTML=
    "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
    }
    </script>

    next, find<body <?php body_class(); ?>>

    immediately after add

    should look like this..

    <body <?php body_class(); ?>><span id="soundload"></span>

    click update, under the window..

    last step.. almost done… on the list of files on the right again, scroll down until you see loop-slider.php.. and click it.. this is very important that this is put in the right place…

    look for this section..
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php if( isset( $thumbnail ) ) : ?> style="background:url(<?php echo $thumbnail[0]; ?>) center no-repeat"<?php endif; ?>>

    between the"?>" and “style” you are gonna add

    onmouseover="hoverSound('http://www.yoursite/sound.wav'); "

    add a space after the code, before “style” replace the http: address with the url of your sound…

    so it should look like this….

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php if( isset( $thumbnail ) ) : ?> onmouseover="hoverSound('http://www.yoursite/sound.wav') ; " style="background:url(<?php echo $thumbnail[0]; ?>) center no-repeat"<?php endif; ?>>

    once again , click update…. that should be it..

    if you need different sounds per slider image… its a little more complicated…

    • This reply was modified 12 years, 4 months ago by gavintfn.
    • This reply was modified 12 years, 4 months ago by gavintfn.
    • This reply was modified 12 years, 4 months ago by gavintfn. Reason: cant get code to work
    • This reply was modified 12 years, 4 months ago by gavintfn. Reason: cant get code to work
    • This reply was modified 12 years, 4 months ago by gavintfn. Reason: cant get code to work
    #5779
    gavintfn
    Participant

    ok.. think i got it all in there….lol..took long enough.

    #5806
    seiperseo36o
    Participant

    So I tried to do what teh hi told without asking for help, but I destroyed my site, thank goodness I had backed up to | | | πŸ™‚

    So …
    Β  I loaded the sound you want to put
    [audio src="http://aleccicristian.altervista.org/blog/wp-content/uploads/2012/07/System_Audio_20120615_2103_mp3cut.net_.mp3" /]
    how do I enter that code you gave me in the header?

    <?php
    /**
    * The Theme Header Template
    *
    * Used to display the document section and page header
    *
    * @package WordPress
    * @subpackage Minimatica
    * @since Minimatica 1.0
    */
    ?>
    <html >

    <meta charset="” />

    <link rel="pingback" href="” />
    <?php
    /**
    * Hook used to isert content in the document's section.
    * Always have this before closing the tag.
    */
    wp_head(); ?>

    <body >

    < id=”site-title”><a href="” title=”” rel=”home”></>

    and this is the LOOP.SLIDER.PHP

    4,
    ‘paged’ => $paged,
    ‘ignore_sticky_posts’ => 1
    );
    $args = wp_parse_args( $args, $wp_query->query );
    ?>

    <div id="post-” style=”background:url() center no-repeat”>

    <a class="overlay" href="” rel=”bookmark”>

    <a href="” title=”” rel=”bookmark”>



    max_num_pages > 1 ) : ?>

    I tried to insert it maybe something wrong and I will destroy the whole site .. could you help me and tell me how should I put it … thank you very much

    #5807
    seiperseo36o
    Participant

    the link of sound is it

    [audio src="http://aleccicristian.altervista.org/blog/wp-content/uploads/2012/07/Camera-Click-SoundBible.com-448064391.wav" /]

    I had the wrong link

    #5863
    alewhatsup
    Participant

    There is no plugins for sound in a website? You know… with button for sound on/off or volume up/down…

    Thanks!!

    http://www.alessioenzo.it

    #5887
    gavintfn
    Participant

    Ale, There are plugins for that, but he had asked for a sound on mouse over the slider images…kinda like a button click…

    #5916
    alewhatsup
    Participant

    Oh! Sorry!

    #5986
    gavintfn
    Participant

    This one still open?

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.