Results 1 to 7 of 7

Thread: Text resing

  1. #1
    Join Date
    Oct 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text resing

    I found this article on text resizer and used it on my site. But for some reason. I can't get it to work. Any thoughts anyone?

    http://www.dynamicdrive.com/dynamici...xtresizer.html

    HTML Code:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    <meta name="description" content="Charisma Communications">
    
    <title>Charisma Communications - Cover</title>
    
    <link rel="stylesheet" media="screen" href="css/main.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Charisma Communications">
    <meta name="keywords" content="Motovational,Charisma,Toes,Louis Gaudry,Public Speaker">
    <meta name="author" content="Louis Gaudry">
    <style type="text/css">
    body {
    	margin-left: 0px;
    }
    </style>
    
     <!-- start resize text style -->
    
    <style type="text/css">
    
    .controlstyle a{ /*links inside DIV sizecontroldiv*/
    outline:none;
    }
    
    .controlstyle a img{ /*image links inside DIV sizecontroldiv*/
    border-width:0;
    }
    
    .controlstyle a.selectedcontrol img{ /*selected control's image*/
    border-bottom:4px solid darkred;
    }
    
    </style>
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    
    <script type="text/javascript" src="fluidtextresizer.js">
    
    /***********************************************
    * Fluid Text Resizer- (c) Dynamic Drive DHTML code library ([url]www.dynamicdrive.com[/url])
    * Visit [url]http://www.dynamicDrive.com[/url] for hundreds of DHTML scripts
    * Please keep this notice intact
    ***********************************************/
    
    </script>
    
    <script type="text/javascript">
    
    var mytextsizer=new fluidtextresizer({
    	controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
    	targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
    	levels: 3, //number of levels users can magnify (or shrink) text
    	persist: "session", //enter "session" or "none"
    	animate: 200 //animation duration of text resize. Enter 0 to disable
    })
    
    </script>
    
    <!-- end resize text style -->
    
    
    </head>
    <body>
    <div id="container">
    
    <header>
    
    <!-- start resize text  -->
    
    
    <div align="right" id="sizecontroldiv" class="controlstyle>
    
    Increase/Decrease controls: <a href="#smaller"><a href="#bigger"><img src="images/fontminus.gif" /></a> *<a href="#bigger"><img src="images/fontplus.gif" /></a><br /><br />
    </div>
    
    
    <!-- end resize text  -->
    
    
    <img id="fullbody" src="images/fullbody.png" alt="Full Length image of Louis Gaudry">
    <h1 class="header">Charisma Communications</h1>
    <h3 class="header">"...Moving People Beyond Their Limitations..."</h3>
    </header>
    
    
    
    
    
    
    
    
    
    <div id="preamble">
    <h2><a id="ms" href="about.html">Motivational Speaker</a></h2>
        
     <hr>
       <h2><a href="aboutus.html" id="ms"">Accessible Website Design
    and Development </a> </h2>
       
       </ul></div>
       
       <!-- end #preamble -->
     
       
     
    
       
       
    
    
    
    <footer>
    <a href="http://www.cjwebconsulting.com/" target="_blank">
       Copyright &copy; 2015 Charisma Communications		       
       Website Designed By CJ Web Consulting
    </a>
    </footer>
    
    </div><!-- end #container -->
    
    </body>
    </html>
    Last edited by Beverleyh; 10-08-2015 at 06:04 PM. Reason: Formatting

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    A link to a reduced test page would be better.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Oct 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You mean the actual html page? I think thats what you mean. here you go.

    http://www.charismacommunications.ca/
    Last edited by Beverleyh; 10-08-2015 at 09:09 PM. Reason: Formatting

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The 'fluidtextresizer.js' file isn't where your markup says it is so its throwing a 404 error.

    According to your markup, it should be located here http://www.charismacommunications.ca/fluidtextresizer.js
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    Oct 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In the code at the beginning of my post. I have all code in one page. I did not realize there was fluidtextresizer.js file. Where would I find it? Here? http://www.dynamicdrive.com/dynamici...xtresizer.html

  6. #6
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

  7. #7
    Join Date
    Oct 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It's all working now. Thank you Beverleyh

Similar Threads

  1. Replies: 14
    Last Post: 12-18-2013, 02:06 AM
  2. Replies: 1
    Last Post: 07-12-2010, 01:31 PM
  3. Replies: 2
    Last Post: 07-04-2010, 08:12 PM
  4. Replies: 2
    Last Post: 07-28-2008, 09:04 PM
  5. Replies: 2
    Last Post: 04-03-2007, 12:03 PM

Bookmarks

Posting Permissions

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