Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: sIFR help

  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sIFR help

    I'm trying to implement sIFR on a website and am having some difficulties.
    I've read a bunch of forums and couldn't really find anything similar.

    If you're familiar with it, can you take a look?

    Here is my code:

    Code:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
              "DTD/xhtml1-strict.dtd">
    <html>
    <html>
      <head>
      <title></title>
      <style type="text/css">
       /* sIFR Styles */
    .sIFR-flash {
    	visibility: visible !important;
    	margin: 0;
    }
    
    .sIFR-replaced {
    	visibility: visible !important;
    }
    
    span.sIFR-alternate {
    	position: absolute;
    	left: 0;
    	top: 0;
    	width: 0;
    	height: 0;
    	display: block;
    	overflow: hidden;
    }
    .sIFR-hasFlash h2 {
    	visibility: hidden;
    }
      </style>
      <script src="sifr.js" type="text/javascript"></script>
      <script type="text/javascript">
        if(typeof sIFR == "function"){
          sIFR.replaceElement("h2", named({sFlashSrc: "BellCentennialLTAddress.swf", sColor: "#000", sCase: "upper"}));
        };
      </script>
      </head>
      <body>
        <h2>Testing...</h2>
      </body>
    </html>
    The flash replacement occurs, but the text doesn't show up.
    What i mean by that, is flash is embedded in the page, but it's blank. I can right click it and the flash menu pops up, but the text must be white or something. I haven't changed the sifr.js file.

    Am I missing something?

  • #2
    New Coder
    Join Date
    Apr 2005
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any ideas?

    I'll play around with it a bit tonight when I get home from work. Hopefully I can figure this out.

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sifr

    Hey there, you shouldn't be defining your own SIFR styles. Use the sheets included with the SIFR package instead. (sifr-screen.css, etc)

    This is a quick tutorial anyways.

    Let me know if that helps.
    Last edited by methodicalj; 11-25-2006 at 03:33 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •