Jump to content

baccarak

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by baccarak

  1. just to mention that the 'Change' css is significantly smaller and easier to edit and update
  2. This is a problem I had. The way I do it now is have 2 stylesheets: 1 Master css with all styles I need for any site - mine is 8kb 2 Change css that has a list of all the variables I change from site to site The Master uses multiplicity styles , this is an example for panel widths for all panel combos for a 960px width with padding site: .p20{width: 185px;}.p25 {width:233px;}.p33{width:312px;}.p40{width:376px;}.p50{width: 470px;}.p60{width: 566px;}.p66{width:629px;}.p75 {width: 709px;}.p80 {width: 757px;}.p100{width:945px;}.p100m{width:100%;} .p20,.p25,.p33,.p40,.p50,.p60,.p66,.p75,.p80,.p100{float: left;margin-left:5px;} as you see I do not have to put float: left;margin-left:5px; for every element and cuts loads of coding - bear in mind that this short code covers 27 different layout combinations! with just 2 lines of code. here is another: .acc-hh,.ah,.ac,#pna,#cont,#logo,.btn1,.btn2,.btn3,.btn4,.btn5,.pnav,#snav,#tags,.tag,.tags li{background-repeat:repeat-x} that has saved coding 15 more times!!! ie: background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x background-repeat:repeat-x NOTE that i use short names for my ids and classes - usually no more that 4 ;-) also being selective I can add a mixture of upto 3 styles to 1 element - you can add 2 classes to 1 element!! ie <div id="news" class="wht r10""></div> - I have a unique div called news (newsfeed) that has a white background (wht) and rounded corners of 10 pixels (r10) then news id can have additional styles - if it has a background-repeat:repeat-x add #news to your list for the background-repeat:repeat-x element rounded corners code in css3 = -moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px so if you have ,say just 6 divs on your site using rounded corners of 10 pixels, you are saving this much in code -moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px using this technique with common terms such as background-repeat:repeat-x has streamlined my css by 60% and also gives me more style options too. Also remeber your Master css has your tried and tested styles so you never have to touch it again only to add additional styles. Rememer - if certain divs (for example) is going to change a lot through the site - ie background image is unique add to just this part to your Change css - if it has a background-repeat:repeat-x add that div to that element.
  3. with my limited PHP programming skills I have managed to successfully a produce a css button maker which makes and produces the code for a number of resolutions and devices. this is the $result displayed $result = "<a href='#' class='blnk'><li class='btn rnd'>" .$_SESSION['text'] ."</li></a>"; ($_SESSION['result']==$result); this is how each device is called: #### ANDROID ####### if ($_SESSION['device']=="android") { echo "<div id='andt'></div><div id='andm'><div id='and-st'><div id='btn'>"; $i=1; while($i<=$_SESSION['nbr']){ echo $result; $i++; } echo "<div class='cl'></div></div></div></div><div id='andb'></div>";} This is the dropdown for the bumber of buttons <legend> Button No</legend> <select name="nbr"><option value="<? echo $_SESSION['nbr'] ?>"><? echo $_SESSION['nbr'] ?></option><?php include('inc/f-1to8.php'); ?></select></fieldset></td> <tr> <td colspan="3"><fieldset><legend>Button Text </legend><input name="text" type="text" value="<? echo $_SESSION['text'] ?>" size="50" maxlength="16" /></fieldset></td> What I need is to know howto not only produce a number of Button Text input boxes that correspond to Button No but ones that each correspond individual buttons so each button has its own text field. If anyone can help it would be much appreciated - Im suprised I have got as far as I have. here is the link at the mo http://www.d-sine.com/_STYLES/buttons.php - (the reset button will set default settings by going to a page that posts back default settings in hidden fields on a meta refresh) Kind Regards
  4. sorted Nodral all I had to do was to explode $id adding $no in the process: from: while(list($id, $values)=each($output)){ list ($offer, $subh, $desc, $promo, $notes ) = explode ('|', $values); print"$id<center><h3>$offer</h3><h4>$subh</h4></center><p align='left'>$desc</p>Please quote Promo Code:<div align center> <b>$promo</b></div><hr>"; //template end } ?> to: while(list($id, $values)=each($output)){ list ( $offer, $subh, $desc, $promo, $notes ) = explode ('|', $values); list ( $no, $offer, $subh, $desc, $promo, $notes ) = explode ('|', $id); print"<center><h3>$offer</h3><h4>$subh</h4></center><p align='left'>$desc</p><div align center> Please quote Promo Code:<b>$promo</b></div><hr>"; //template end } ?> thanks again
  5. strange changed to print print"<div align='center'><h3>$offer</h3><h4>$subh</h4></div><p align='left'>$desc</p><div align='center'>Please quote PromoCode:<b>$promo</b></div><hr>"; an now outputs: <div align="center"><h3></h3><h4></h4></div><p align="left"></p><div align="center">Please quote Promo Code:<b></b></div><hr>
  6. outputs in right order now but lost formatting and echoes seperator tx anyway
  7. brilliant - I owe you one email me - Nodral if you need any graphic or web template work done
  8. do you mean? list ($id, $offer, $subh, $desc, $promo, $notes ) = split ('\|', $line); $line=array_reverse($id); //template start print"$id <center><h3>$offer</h3></center> <h4>$subh</h4> <p align='left'>$desc</p> Please quote Promo Code: <b>$promo</b><hr>"; //template end } $fp++; } fclose($fp); ?>
  9. This is simple, I am sure, for a programmer, so dont laugh Problem I have an admin section that writes latest offers to a csv file that is automatically given an ID adds new record to the file CSV Setup (bbs.txt) ID|Offer|SubHeading|Description|PromoCode|Notes I then parse it using this <?php $fp = fopen('bbs.txt','r'); if (!$fp) {echo 'ERROR: Unable to open file.</body></html>'; exit;} $row_count = 0; while (!feof($fp)) { // this is to exclude the first row if($row_count==0){ fgets($fp, 2048); //use 2048 if very long lines $row_count++; continue; } $line = fgets($fp, 2048); //use 2048 if very long lines if (!empty($line)){ list ($id, $offer, $subh, $desc, $promo, $notes ) = split ('\|', $line); //template start print"$id <center><h3>$offer</h3> <h4>$subh</h4></center> <p align='left'>$desc</p> Please quote Promo Code:<div align center> <b>$promo</b></div><hr>"; //template end } $fp++; } fclose($fp); ?> Works great but needs to show in reverse so newest added first (id) 4, 3, 2, 1 from bottom to top instead of 1, 2, 3, 4 - still ignoring the first line : ID|Offer|SubHeading|Description|PromoCode|Notes Graphics/Photoshop help offered in exchange if needed - this is my final task to finish so I can then get paid ;-) so any help appreciated greatly.
  10. Cool thanks for the tip, after playing with this, I have found this a very useful techique for future projects
  11. Try This Play around with the margin-top: -7.5em; Credit goes to Cameron Adams http://www.last-child.com/forcing-the-footer-to-always-be-at-the-bottom-of-a-page/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- html { height: 100%;} body { height: 100%; background-color: #000000; margin: 0px; padding: 0px; } #content { position: relative; min-height: 100%;} * html #content { height: 100%;} #bnav { position: relative; margin-top: -7.5em; color: #FFFFFF; } --> </style> </head> <body> <div id="content"></div> <div id="bnav">About Us </div> </body> </html>
  12. you need to use a floating div I think and maybe some javascript, its all down to positioning in the css - I will experiment and look into it.
  13. added trim() to player does not work ;-( tx anyway list( $MDIV, $MYOUTUBE, $MTITLE ) = explode("|", trim($record)); admin.php <?php require_once('inc/settings.php'); ?> <?php session_start(); define('ADMIN_PASS', $adminpassword ); $admin_password = isset($_COOKIE['admin_password']) ? $_COOKIE['admin_password'] : ''; if (empty($admin_password)) { if (isset($_POST['admin_password'])) { $admin_password = md5($_POST['admin_password']); if ($admin_password == md5(ADMIN_PASS)) { setcookie('admin_password', $admin_password); } } } if (!file_exists($database)) { echo "<html><head><link href=\"css/adm.css\" rel=\"stylesheet\" type=\"text/css\">"; echo "</head><body><center><div class=\"message\">"; echo "<h2>Movie database not found!</h2>"; echo "<br><br><br><br><FORM><INPUT type=image src=\"ig/return.png\" value=\"Back\" onClick=\"history.back();\"></FORM>";echo "</div></center>"; echo "</body></html>"; exit; } $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : ''; $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $divnumbers = array(); $youtubes = array(); $movienames = array(); $count = 0; $userindex = -1; $items = file($database); foreach($items as $line) { list( $divnumber, $youtube, $moviename ) = explode('|', trim($line)); $divnumbers[$count] = $divnumber; $youtubes[$count] = $youtube; $movienames[$count] = $moviename; if ($id == $moviename) { $userindex = $count; } $count++; } if (!empty($action)) { if ($action == 'delete') { if ($userindex == -1) { echo "<html><head><link href=\"css/adm.css\" rel=\"stylesheet\" type=\"text/css\">"; echo "</head><body><center><div class=\"message\">"; echo "<h2>Movie not found!</h2>"; echo "<br><br><br><br><FORM><INPUT type=image src=\"ig/return.png\" value=\"Back\" onClick=\"history.back();\"></FORM>";echo "</div></center>"; echo "</body></html>"; exit; } $file = fopen($database, 'w'); for ($i=0; $i < $count; $i++) { if ($i != $userindex) { fwrite($file, $divnumbers[$i]); fwrite($file, '|'); fwrite($file, $youtubes[$i]); fwrite($file, '|'); fwrite($file, $movienames[$i]); fwrite($file, "\r\n"); } } fclose($file); header('Location: '.basename(__FILE__)); exit; } else if ($action == 'update') { $file = fopen($database, 'w'); for ($i=0; $i < $count; $i++) { if ($i == $userindex) { $divnumbers[$i] = $_POST['divnumber']; $youtubes[$i] = $_POST['youtube']; $movienames[$i] = $_POST['moviename']; } fwrite($file, $divnumbers[$i]); fwrite($file, '|'); fwrite($file, $youtubes[$i]); fwrite($file, '|'); fwrite($file, $movienames[$i]); fwrite($file, "\r\n"); } fclose($file); header('Location: '.basename(__FILE__)); exit; } else if ($action == 'create') { for ($i=0; $i < $count; $i++) { if ($movienames[$i] == $_POST['divnumber']) { echo "<html><head><link href=\"css/adm.css\" rel=\"stylesheet\" type=\"text/css\">"; echo "</head><body><center><div class=\"message\">"; echo "<h2>ID Number already exists!</h2>"; echo "<br><br><br><br><FORM><INPUT type=image src=\"ig/return.png\" value=\"Back\" onClick=\"history.back();\"></FORM>";echo "</div></center>"; echo "</body></html>"; exit; } } $file = fopen($database, 'a'); fwrite($file, $_POST['divnumber']); fwrite($file, '|'); fwrite($file, $_POST['youtube']); fwrite($file, '|'); fwrite($file, $_POST['moviename']); fwrite($file, "\r\n"); fclose($file); header('Location: '.basename(__FILE__)); exit; } else if ($action == 'logout') { session_unset(); session_destroy(); setcookie('admin_password', '', time() - 3600); header('Location: '.basename(__FILE__)); exit; } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <link href="css/adm.css" rel="stylesheet" type="text/css"> <title>Movie administrator</title> </head> <body><center> <div id="ctop"></div><div id="cmid"> <?php if ($admin_password != md5(ADMIN_PASS)) { echo "<center><br>\n"; echo "<h2>Movie Administrator Login</h2>\n"; echo "<form method=\"post\" action=\"" .basename(__FILE__) . "\">\n"; echo "Admin Password: <input type=\"text\" name=\"admin_password\" size=\"20\" /><br><br>\n"; echo "<input type=\"image\" src=\"ig/login.png\" value=\"Login\" name=\"submit\" />\n"; echo "</form>\n"; echo "</center>\n"; } else { if (!empty($action)) { if (($action == 'edit') || ($action == 'new')) { $divnumber_value = ($userindex == -1) ? "" : $divnumbers[$userindex]; $youtube_value = ($userindex == -1) ? "" : $youtubes[$userindex]; $moviename_value = ($userindex == -1) ? "" : $movienames[$userindex]; echo "<center><br>\n"; echo "<h2>Add New Movie</h2>\n"; echo"<ul class='info'>"; echo"<li><strong>Div No</strong>: This number must be unique with <strong>no</strong> duplicates </li>"; echo"<li><strong>Youtube No:</strong> (example) http://www.youtube.com/watch?v=<strong>b5tTl9SF4I8 </strong> << this number is needed </li>"; echo"<li><strong>Movie Name:</strong> Enter Description <strong>(maximum of 35 characters)</strong> </li>"; echo"<li><strong>Action:</strong> Add, Edit or Delete Movie Selection </li>"; echo"</ul>"; echo "<form action=\"" . basename(__FILE__) . "\" method=\"post\">\n"; echo "<table cellspacing=\"0\" cellpadding=\"5\" class=\"admin\">\n"; if ($action == 'new') { echo "<input type=\"hidden\" name=\"action\" value=\"create\">\n"; } else { echo "<input type=\"hidden\" name=\"action\" value=\"update\">\n"; } echo "<input type=\"hidden\" name=\"id\" value=\"". $id . "\">\n"; echo "<tr><td class='bo'>Div No:</td>\n"; echo "<td><input type=\"text\" size=\"10\" name=\"divnumber\" value=\"" . $divnumber_value . "\"></td></tr>\n"; echo "<tr><td class='bo'>Youtube No: </td>\n"; echo "<td><input type=\"text\" size=\"30\" name=\"youtube\" value=\"" . $youtube_value . "\"></td></tr>\n"; echo "<tr><td class='bo'>Movie Name: </td>\n"; echo "<td><input type=\"text\" size=\"60\" name=\"moviename\" value=\"" . $moviename_value . "\"></td></tr>\n"; echo "</table>"; echo "<div align=\"center\" class='nav'><input type=\"image\" src=\"ig/save.png\" name=\"cmdSubmit\" value=\"Save\">"; echo " "; echo "<input type=\"image\" src=\"ig/reset.png\" name=\"cmdReset\" value=\"Reset\"> "; echo "<input type=\"image\" name=\"cmdBack\" src=\"ig/back-s.png\" border=\"0\" value=\"Back\"OnClick=\"location.href='" . basename(__FILE__) . "'\"></div>\n"; echo "</form>\n"; echo "<center><br>\n"; } } else { echo "<center><br>\n"; echo "<h2>Movie Administration</h2>\n"; echo"<ul class='info'>"; echo"<li><strong>Div No</strong>: This number must be unique with <strong>no</strong> duplicates </li>"; echo"<li><strong>Youtube No:</strong> (example) http://www.youtube.com/watch?v=<strong>b5tTl9SF4I8 </strong> << this number is needed </li>"; echo"<li><strong>Movie Name:</strong> Enter Description <strong>(maximum of 35 characters)</strong> </li>"; echo"<li><strong>Action:</strong> Add, Edit or Delete Movie Selection </li>"; echo"</ul>"; echo "<table cellspacing=\"0\" cellpadding=\"5\" class=\"admin\">\n"; echo "<th width=100>No</th>\n"; echo "<th width=200>Youtube No</th>\n"; echo "<th>Movie Name</th>\n"; echo "<th width=200>Action</th></tr>\n"; for ($i=0; $i < $count; $i++) { echo "<tr>\n"; echo "<td><center>" . $divnumbers[$i] . "</center></td>\n"; echo "<td>" . $youtubes[$i] . "</td>\n"; echo "<td>" . $movienames[$i] . "</td>\n"; echo "<td>\n"; echo "<center><a href=\"" . basename(__FILE__) . "?action=edit&id=" . $movienames[$i] . "\"><img src='ig/edit-s.png' border=0></a>\n"; echo "<a href=\"" . basename(__FILE__) . "?action=delete&id=" . $movienames[$i] . "\"><img src='ig/delete-s.png' border=0 ></a></center>\n"; echo "</td>\n"; echo "</tr>\n"; } echo "</table>\n"; echo "<div class='nav'><a href=\"" . basename(__FILE__) . "?action=new\"><img src='ig/addmovie.png' border=0></a> <a href=\"http://www.youtube.com\" target='_blank'><img src='ig/youtube.png' alt='youtube' border='0' /></a> <a href=\"" . basename(__FILE__) . "?action=logout\"><img src='ig/logout.png' border=0></a></div>\n"; } } ?><br></div><div id="cbtm"></div></center></body> </body> </html>
  14. Thank you for your prompt reply. trim() does look like the answer but I have not got a clue where to add this. This is the code to display the player: <?php $recordset = explode("\n",$recordfile); echo"<br><div id='trailer'><center>"; echo"<div id='nwrap'><div id='trnav'>"; foreach ($recordset as $record){ list( $MDIV, $MYOUTUBE, $MTITLE ) = explode("|", $record); if (!empty($record)){ echo"<li><a href='#' onclick='return playVideo(\"selectDemo$MDIV\",\"videoPlayback\")'>$MTITLE</a></li>"; } } echo" </div><br /><a href='admin/index.php' target='_blank'><img src='ig/admin.png' border='0' /></a></div><div id='videoPlayback' class='vids'></div><div style='clear:both;'></div></center></div>"; foreach ($recordset as $record){ list( $MDIV, $MYOUTUBE, $MTITLE ) = explode("|", $record); if (!empty($record)){ echo "<div id='selectDemo$MDIV'style='display: none'>"; echo "<object width='480' height='385'><param name=movie value='http://www.youtube.com/v/$MYOUTUBE&hl=en_GB&fs=fs=1&color1=0x234900&color2=0x4e9e00'></param><param name=allowFullScreen value=true></param><param name=allowscriptaccess value=always></param><embed src=http://www.youtube.com/v/$MYOUTUBE&hl=en_GB&fs=1& type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width='480' height='385'></embed></object></div>"; echo"\r"; } } ?>
  15. I confess I am not a php coder but have managed to build a youtube player which plays from a list which is generated by a flat file data base. http://www.d-sine.com/DEV/CHW/movies/index.php I have also (nearly) built an admin backend where users can edit the database and add, delete and update their movie player list. http://www.d-sine.com/DEV/CHW/movies/admin/ pass = password the problem I have is that when the list is edited it throws in a return (a blank line) into the database resulting in an error when the player is refreshed after the change. When this blank line is taken out all is fine, I have got so close its frustrating arrrgghh Can anyone help??? The code in full is attatched Open Source, so if it is any use to anyone, be my guest ;-) [attachment deleted by admin]
  16. sorted myself with : if (!empty($line)){
  17. I have added list ($offer, $title, $description, $price, $details) = split ('\|', $line); trim($line, "\x0D\xa0\x09\x00"); but no joy Latest Special Offers 12TH-14TH JUNE 2009 per room, per night, Bed and Breakfast, minimum 2 night stay £79.00 CONTACT HOTEL DIRECT £ thanks for replying CV
  18. this will take most a few secs I have a flat file Database which runs a text file >> Latest Special Offers|12TH-14TH JUNE 2009|per room, per night, Bed and Breakfast, minimum 2 night stay|79.00|CONTACT HOTEL DIRECT << and use <link href="css/data.css" rel="stylesheet" type="text/css" /> <?php $fp = fopen('data/offer.txt','r'); if (!$fp) {echo 'ERROR: Unable to open file.</body></html>'; exit;} while (!feof($fp)) { $line = fgets($fp, 500); //use 2048 if very long lines list ($offer, $title, $description, $price, $details) = split ('\|', $line); echo "<div class='offer'>$offer</div>"; echo "<div class='title'>$title</div>"; echo "<div class='desc'>$description</div>"; echo "<div class='price'>£$price</div>"; echo "<div class='details'>$details</div>"; $fp++; } fclose($fp); ?> to display the problem I have is that the text file adds a blank line after the last record and since I have to add a £ into code >> £$price this echo's after the last record is displayed. What to I have to add to omit showing the last line and the extra £ sign. I have got this far and tripped up on this, please help
  19. this is ok to post to subscribe.php but where is the reference in posting to the proccess.php too? (Posting to 2 files not just the one) Regards
  20. [quote <?php if(isset($_POST['NameOfSubmitButton'])){ // form has been submitted .... process the form now. }else{ // show form here... it has not been submitted echo '<form name="formName" action="'.$_SERVER['PHP_SELF'].'" method="post">'; // rest of form here } ?> This is basically how you would want to do it. Nate How would I add this to this code? echo "<form method=post action=?action=subscribe>"; echo "<Table width=80%><TR><TD width=15%>Name:</TD><TD width=80%><input type='text' name='name' style='font-size:12px'></TD></TR><TR><TD width=15%>Email:</TD><TD width=80%><input type='text' name='email' style='font-size:12px'></TD></TR><TR><TD width=15%><input type=hidden name=group value='$group'><BR><BR></TD><TD width=80%><input type='submit' value='Subscribe' style='font-size:12px'></TD></TR></Table></form>"; how would this work? I would be interested to know Kind Regards
  21. I think it can be an active content wich can be a pain - DW fixes this automatically by adding this Scripting to the code - try that. - I have bolded the script for editing <script src="AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','[b]xxxxx[/b]','height','[b]xxxxx[/b]','src','[b]xxxxx[/b]','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','[b]xxxxx[/b]' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="105" height="21"> <param name="movie" value="[b]xxxxxx[/b]" /> <param name="quality" value="high" /> <embed src="[b]xxxxxx[/b]" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="[b]xxxxxx[/b]" height="[b]xxxxxx[/b]"></embed> </object></noscript> //v1.0 //Copyright 2006 Adobe Systems, Inc. All rights reserved. function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = '<object '; for (var i in objAttrs) str += i + '="' + objAttrs[i] + '" '; str += '>'; for (var i in params) str += '<param name="' + i + '" value="' + params[i] + '" /> '; str += '<embed '; for (var i in embedAttrs) str += i + '="' + embedAttrs[i] + '" '; str += ' ></embed></object>'; document.write(str); } function AC_FL_RunContent(){ var ret = AC_GetArgs ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_SW_RunContent(){ var ret = AC_GetArgs ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } function AC_GetArgs(args, ext, srcParamName, classid, mimeType){ var ret = new Object(); ret.embedAttrs = new Object(); ret.params = new Object(); ret.objAttrs = new Object(); for (var i=0; i < args.length; i=i+2){ var currArg = args[i].toLowerCase(); switch (currArg){ case "classid": break; case "pluginspage": ret.embedAttrs[args[i]] = args[i+1]; break; case "src": case "movie": args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.params[srcParamName] = args[i+1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblClick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": ret.objAttrs[args[i]] = args[i+1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "id": case "tabindex": ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1]; break; default: ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1]; } } ret.objAttrs["classid"] = classid; if (mimeType) ret.embedAttrs["type"] = mimeType; return ret; }
  22. I agree will all of BlueBoden has has stated here and use this method very successfully in SEO. Its highly regarded method used by top SEO experts since they assume that the searchbots read only a certain number of lines from the top of the page. I usually take this as the first 500 as a rule of thumb. It is also worth noting is ommitting unnessassary metatags too and other stuff like this: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <link href="/media/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="/media/favicon.ico" rel="icon" type="image/x-icon" /> Personally I also ommit description and keyword tags since Google do not use these Also put all your javascripts in seperate files and link to them. More tibits I will add to the SEO section. of the forum.....
  23. how do u do that? is there any special syntax I use? <form method=post action=?action=subscribe process,php>"; ? Thanks for reply btw
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.