HTML - Moving Counter Button Inside The Template
hii... i had made an template and place all my code inside it it is running fine but the button is not getting near to the image can u help me with that or tell me how to do it ....and i had used software to convert template from powerpoint with a software called ppt2 flash standard and it has it logo of that website on the buttom of my template how to remove it !!
HTML Code: <html> <head> <title>U Compare</title> <script><!-- var Clicks = 0 ; function AddClick(){ Clicks = Clicks + 1; document.getElementById('CountedClicks').innerHTML = Clicks + ' votes'; } // --></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script language="javascript" src="swf.js"></script> <title> compare</title> <!-- saved from url=(0014)about:internet --> </head> <body bgcolor="#999999"> <span id="CountedClicks">0 vote</span><br> <button style="background-color:white" onclick="AddClick()">vote</button> </body> <script language="javascript"> <!-- function getSlideIndex() { var strUrl = document.location.href; if (strUrl.indexOf('?') == -1 || strUrl.indexOf('=') == -1) { return 0; } return strUrl.substring(strUrl.indexOf('=') + 1, strUrl.length); } //--> </script> <body> <center> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr> <td width="100%" height="100%" align="center" valign="center"> <script language="javascript"> writeSwf("compare.swf?slideIndex=" + getSlideIndex(), "100%", "100%"); </script> </td> </tr> <tr> <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: silver;" align="right"> <span class="style1">Powered by Wondershare <a style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: silver" href="http://www.wondershare.com/pro/ppt2flash-standard.html">PPT2Flash Standard</a></span></td> </tr> </table> </center> <!-- begin htmlcommentbox.com --> <div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">your opinion box</a> is loading comments...</div> <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/simple/skin.css" /> <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={};} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=406&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script> <!-- end htmlcommentbox.com --> </body> </html> Similar TutorialsHello I have I-Framed another webpage into my webpage, but I would like the iframed content move to the left. Some of the content on the right is not showing right now, if it would move to the left, it will be perfect. Would this be possible? if so how? Best Regards! Heya, This is my first post on the forums =] I just wanted to ask if anyone knew a code that produced a clickable button on your website that when clicked by a website visiter raises the number of a visable counter by 1? And, if possible one that could only be pressed once by the same IP address or Computer. I hope this is clear enough =] I don't mean a site counter that raises the number everytime someone comes onto the site. If you want to include a template file how do you do that inside a html page? I want to include a footer.dwt file inside my html file...... I want to implement the footer.dwt file for all the pages of website....so i just want to call the footer.dwt file below my html page...... Help? Okay, with frames, whenever there is a link that you want to open up in the parent browser rather than inside the frame, all you have to add to the link code is "target="_parent"". However, for INPUT BUTTONS(not links) this doesn't seem to be the case. This is my input button code: HTML Code: <input id="button" type="button" value="Submit!"> the input button is INSIDE A FRAME, and because of that, when I click on it- the link goes inside the frame... how do I make it so the input button links to the PARENT browser? Hello, I'm trying to create a counter on HTML that actually counts and say Page 1 of 30. Can you please tell me the code to put it on. Thanks Hey guys, I found a counter on the web, and tried to reconfigure it to what i need. the weirdest thing has happened, and I don't understand it. maybe someone can tell me logically what it means...so heres the code: Let me also explain what i am trying to do. as a user, I want make it start a counter when I go to domain.com/index.php. if i go to another website (within the same domain), the ip addresss is stored. I want to make it so that this counter will not increase when the same ip address goes back to index.php <?php if (file_exists ('count_file.txt') && ($ipone != $iptwo) /*So here, I wanted to set the following: the if statement is TRUE if the two conditions are met: count_file.txt exists, AND $ipone DOES NOT EQUALS $iptwo==== now heres what baffled me. This IF statement is executed when $ipone actually EQUALs $iptwo.. I made the opposite change where instead of != it becomes ==, and this IF statement wasn't executed.*/) { $iptwo = $_SERVER['REMOTE_ADDR']; echo $iptwo; /*Just here so that I can debug my problem*/ echo $ipone; /*This was just here so I can debug my problem*/ $fil = fopen('count_file.txt', r); $dat = fread($fil, filesize('count_file.txt')); echo $dat+1; fclose($fil); $fil = fopen('count_file.txt', w); fwrite($fil, $dat+1); } else if (file_exists ('count_file.txt') == NULL) { $fil = fopen('count_file.txt', w); fwrite($fil, 1); echo 'else if'; /*This was just here so I can debug my problem*/ fclose($fil); } else { /*Here I don't have to do anything.. didn't know if "break;" would work, so instead i just left this as is.*/ $fil = fopen('count_file.txt', r); echo ('else'); fclose($fil); } ?> I would like to show that my message board has a new post on my main page. Or maybe just the number of views of my message board shown on my main page. The message board I use is guestbook.cgi Thanks Rick The instructions say to insert two chunks of code into your page. ''You just need to insert two chunks of code into your page. Place this within your HEAD section...'' (where is the head section in the INDEX.html file??, is that on the top) Here is what the code looks like. First ''chunk'' <!-- Start MegaCounter HEAD tag code --> <SCRIPT language="JavaScript"><!-- /***********************************************************\ MegaCounter v1.1 A "configurable" hit counter for the rest of us... by Joe Barta http://www.pagetutor.com/megacounter/ \***********************************************************/ text_string = "visitors since 9/5/98"; txt_color = "#000000" // Text string color counter = 587113; // Counter starts at this, revision = 1; // Every time you alter your initial counter value (above), you must also change the revision number. page_code = 1; // Unless you want every page to use the same counter, you'll need to use a different page code for each page. hitsperday = 2000; // How many hits per day you want. bg_color = "#222222" // Background color of counter fg_color = "#66FF66" // Foreground color of counter link_color = "#0000FF" // Color of link back (Powered by MegaCounter) back_color = "#FFFFFF" // Color of white space in counter area //--></SCRIPT> <SCRIPT language="JavaScript" SRC="http://www.pagetutor.com/megacounter/generic_cookie_1yr.js"></SCRIPT> <SCRIPT language="JavaScript" SRC="http://www.pagetutor.com/megacounter/megacounter.js"></SCRIPT> <!-- End MegaCounter HEAD tag code --> And here is the other ''chunk'' <!-- Start MegaCounter BODY tag code --> <SCRIPT language="JavaScript"><!-- document.write("<TABLE CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" BGCOLOR=\"" + back_color + "\"><TR>"); document.write("<TD BGCOLOR=\"" + bg_color + "\"><FONT FACE=\"andale mono,arial\""); document.write("COLOR=\"" + fg_color + "\"><B> " + counter + "</B></FONT></TD>"); document.write("<TD><FONT SIZE=\"2\" COLOR=\"" + txt_color + "\" FACE=\"arial,helvetica\"> " + text_string + "</FONT></TD>"); document.write("</TR></TABLE>"); //--></SCRIPT> <!-- Start MegaCounter BODY tag code --> I pasted this in the index.html file, but then no counter showed up on my website. I must be doing somsthing wrong, please advise. Thank you. Hi all My Site is hosted on linux site and i have basic cgi scripts for page counters, but does anyone know how i can create a download counter for files which can be made visible to users. I want the content to be updates live on the site ( basic count per click ) http://www.pellapushers.co.uk/mashups.html Is this possible with html code or should i be looking at cgi Regards, Alan Hi; How do you put in a letter counter on a web page. I make custom embroidery patches. As the person types in the text for the patch, I need to be able to count the number of key strokes and from that count be able to direct to the right page. How can this be done. I can do alittle coding but not very good at it yet. If there is someone out there that can help, I will be happy with any help I can get. Thanks. ok, first, how do i make a counter? then also, if ive got something like: <a href="bla.html">bla</a> <!--counter here--!> how do i make the counter go to how many times people clicked on that link? I've had a simple php counter on a web page for years. Now I change the webpage and put the counter html on it just like before and this time it doesn't work! Could this be something to do with the new page being xhtml instead of html? Or because this time there's already a 'javascript' section whereas before there wasn't? Or what? The page is at http://greenpepper.org if anyone would care to look. the html line is right at the bottom of the page, just before </body> and the line itself is: <script language="Javascript" src="counter.php"><!--//--></script> The php counter code is very simple, too, it is: <? $filename = "count.txt"; $fp=fopen("$filename","r"); $count=fread($fp, filesize("$filename")); fclose($fp); $count++; $fp=fopen("$filename","w+"); fwrite($fp,$count); fclose($fp); // Use this line below if you like to use this counter to count hits in a PHP file. //echo "This page has been visited $count times."; // Use this line if you like to use this counter to count hits in a HTML file. You also need to add a code in your HTML file. See the guide for details. echo "document.write('$count');"; ?> The text file is still there in the directory, I checked everything by running the old file again and it runs the counter okay. I've made a hit counter for my website and need a bit of help in HTML to get it to work. There are 3 files: One SWF file One PHP file and One TXT file All three of these files are in a web folder. What I want to do is get it to work on Blogger. I've successfully embedded the SWF file into it which shows the hit counter but need the TXT file and PHP file to load along with the SWF (and to change the TXT file in the web folder). Is this possible to do with some HTML code? Any help would be greatly appreciated Just ask if you need a bit more information. EDIT: The problem has been solved, for anyone who has the same problem the solution is easily solved by using the <iframe> </iframe> tag. Just add a src, width or whatever else you need in it. Ok, new to the boards here. I'd appreciate some help regarding a website i am building. I have a question due to my lack of advanced html knowledge, but am a quick learner. Does anyone know how to build a quality visitor counter? I know they have the free one's online, but i want something that integrates well into the site and looks like it belongs there. I'm sure i'll have some more questions later. Website: http://www.niufans.com/cpg/albums/Re...Red%20Riot.htm Thank you! if the 1st vote button is hitted twice then if i hit 2nd vote button so it jumps to 3 instead of 1 ....please help i m doing this for my college ...not a project just ......doingit !! HTML Code: <html> <head> <title>U Compare</title> <script><!-- var Clicks = 0 ; function AddClick(){ Clicks = Clicks + 1; document.getElementById('CountedClicks').innerHTML = Clicks + ' votes'; } // --></script> <script><!-- var Clicks = 0 ; function AddClick1(){ Clicks = Clicks + 1; document.getElementById('CountedClicks1').innerHTML = Clicks + ' votes'; } // --></script> </head> <body> <H1 align="center"><I>WELCOME 2 U-COMPARE</H1> <HR COLOR="RED" SIZE="10" width="50%" NOSHADE> <img src="ab.jpg" style="margin-left:400px"align="down" alt="Pulpit rock" width="250" height="400" /> <span id="CountedClicks">0 vote</span><br> <button style="background-color:white"; ; onclick="AddClick()">vote</button> <table cellspacing="15" border="0" cellpadding="0"> <td width="700"></td> <td width="3" height ="700" bgcolor="RED"><BR></td> <td width="150" valign="DOWN" align="right"> </td> </tr> </table> <img src="tiesto.jpg" style="margin-left:400px"align="bottom" width="250" height="400" /> <span id="CountedClicks1">0 vote</span><br> <button style="background-color:white"valign="top" onclick="AddClick1()">vote</button> <!-- begin htmlcommentbox.com --> <div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div> <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/simple/skin.css" /> <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={};} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=406&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script> <!-- end htmlcommentbox.com --> <table cellspacing="15" border="0" cellpadding="0"> <td width="700"></td> <td width="3" height ="700" bgcolor="RED"><BR></td> <td width="150" valign="DOWN" align="right"> </td> </tr> </table> </body> </html> Hi guys, I am new here and i'm dutch so sorry for my bad language I have a question and i hope u guys can help me with it. I have searched for a script that can show the money we have from donations in a little counter on a website. It can be html or php, i searched for ages for this script and i can't find anywere!! Thnx alot for the help! Greetz, Marlboro / Bouwe Hi, I would like to display a counter below an image which shows how many times it's been clicked and viewed. Could someone possibly help me with some code to do this. Thanks Simon hiya,i have a msn group and it doesn't support java scripts i searched on google tried a lot of webcounters but they are all with java .. is it possible to have an users counter without any java ?? just simple html.Thanks in advance ! *love - Elise Hi guys, I am new to the web design scene and I am attempting to build a simple website. The website will consist of a few pages however for the matter at hand lets pretend there are just 2: index.html & download.html I want to put a counter on index.html that will count how many times people visit download.html... it will be apart of the following sentence: Code: This file has been downloaded by x people x of course is the integer that needs to change. Really my question is: How do I do this? And can someone show me with a tutorial etc? Thanks! basically, im trying the find the specific URL web address for the webcounter on my myspace page so i can enter it into a script and artificially boost it. only problem is, i can't seem to do it. http://profile.myspace.com/index.cfm...ndid=112544176 thats the address to my page and the counter is currently on 526. i have already found the web address for my plays which can be found on the following page... http://mediaservices.myspace.com/ser...hx?b=112544176 its the addresses at the bottom that start 'url=http://media.myspace....' i understand that all myspace pages load themselves from a database but is there any way to find out what address it loads for the VIEWS counter? maybe there is a program that anyone knows about that can track EVERY url address a page requests when opening. please help! |