Jump to content

music_lp90

Members
  • Posts

    227
  • Joined

  • Last visited

Everything posted by music_lp90

  1. Have you tried setting both the cellpadding and cellspacing? I couldn't access your page either.
  2. .dwt is a Dreamweaver template file. The instance begin editable tells Dreamweaver where people are allowed to begin editing the file.
  3. Should I use stripslashes then and then check to see if they have entered in new line breaks? Thanks!
  4. You would include a from field to know who to reply to. Say, the form was being used to request some information. Whoever the form sends the request to can click reply and send a message back to the user that was requesting info.By the way, no one answered my question about magic quotes being turned on, so if any one knows the answer, I would still appreciate it. I checked and magic quotes is turned on. If I leave that on, does it protect my scripts from spammers? I couldn't seem to add any other addresses to it.
  5. Hi, I've been trying to add this to my php form, but I can't get it to work. It still sends the e-mail. I think it is because my form is escaping characters. I tried to add a \n or \r in some of the fields, but it shows up as \\n and \\r when sent. Does that mean my form is safe from spammers trying to add \n or \r? Also, what would be adding the slashes? Could it be something like magic_quotes being turned on?Thanks!
  6. Thanks for all of the input. I have it working how I wanted it to, at least in my browsers. I'm not using this for anything important, it's just practice.
  7. Does anyone know if there are any quizzes online to test your proficiency in JavaScript. I've taken the one on this site, but I'm looking for something more in depth. If you know of a php one I would like to try that as well.Thanks!
  8. Hi, can someone tell me if it is possible to change the class name of an html object with javascript.Such as onClick="changeClass()"Where changeClass() does this: <div class="old"></div> changes to <div class="new"></div>Thanks!
  9. Thanks boen. I had seen this done on a tutorial from Lynda.com, but I don't think it mentioned anything about the limited support for it. So, I guess I won't do it this way. It seemed like a pretty handy way to do it though. The guy was inserting images using xml and I thought it was the same way I was doing it, but for some reason its not working for me. Thanks for the javascript suggestion, I think I'm going to give that a try.
  10. Hi, I'm trying to create a photo gallery using php to create xml that holds the data for the gallery. The xml is displaying the path to the image correctly, but I am not able to get the image into the html table.Here's the php/xml: <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; ?><?php require_once("functions.php"); ?><gallery> <?php xmlImage(scan_sort_dir("images/xmlGallery/")); ?></gallery> Here are the functions php is calling: <?php //Get the files from the directory function scan_sort_dir($path) { $dir = $path; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $path . $filename; } return $files; } ?><?php //insert images into xml file function xmlImage($passFiles) { $files = $passFiles; for ($i = 0; $i < count($files); $i++) { if (!is_dir($files[$i])) { echo "<image>" . $files[$i] . "</image>"; } } }?> Here is the html: <xml id="galleryData" src="xmlGallery.php" /><table datasrc="#galleryData"> <tr> <td><p>Slide Show</p></td> </tr> <tr> <td><img datafld="image"/></td> </tr></table> If you want to see how the xml displays when viewed in a web page you can see it here: http://www.grantportfolio.com/xmlGallery.php This is helpful because it shows just the xml without all of the php.To see the what the html page is displaying you can go here: http://www.grantportfolio.com/xmlGallery.htmlThanks for your help!
  11. edit: Nevermind, I figured it out. I didn't realize I needed to write "return" inside of the onsubmit eventHi, I'm pretty new to JavaScript and am trying to make the most basic form validation, yet it is not working. The problem is, it catches the error, but the form still submits after the user clicks ok on the alert box.Here's the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title><link href="formStyle.css" type="text/css" rel="stylesheet"><script type="text/javascript" language="javascript">function checkForm (passForm) { if (passForm.user.value == "") { alert("You muster enter a user name"); passForm.user.focus(); return false; }}</script></head><body><form onSubmit="checkForm(this)" name="login" action="test.php"> Username: <input type="text" name="user" id="userName" /> <input type="submit" value="Login"></form></body></html> Thanks!
  12. Hi, I think I have a basic understanding of what a MVC framework is, but I need to clarify some things.1. model holds the data2. view displays the data3. control allows the model and view to communicateIs that the basic idea?If so, then for instance, would a MySQL database be the model, html and CSS be the view, and php be the controller?Thanks!
  13. Do you do that in the embed tag? Like this <embed src="page.swf?id=1&val=2"The results I keep coming up with are undefined. What is supposed to happen is when someone clicks on the flash thumbnail, the link takes them to www.grantportfolio.com/selection.php?val=1(or some other #)&id=1(or some other id #), but intead it is writing the url like this http://www.grantportfolio.com/selection.ph...mp;id=undefined.Is there a way to tell whether the variable is undefined because I am passing it incorrectly or because I am doing something wrong in the action script?Do I have to load the variable somehow or declare it?Here's where I am passing the variables to flash: <?php $no_extension = substr($swf, 0, -4); ?><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','200','height','150','accesskey','grantportfolio','tabindex','1','title','flashthumbnails','src','flash/thumbs/th1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/thumbs/<?php echo $no_extension; ?>' ); //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=9,0,28,0" width="200" height="150" accesskey="grantportfolio" tabindex="1" title="flashthumbnails"> <param name="movie" value="flash/thumbs/<?php echo "$swf"; ?>?var_link=<?php echo $id2; ?>&var_link2=<?php echo $id; ?>"> <param name="quality" value="high"> <PARAM NAME=FlashVars VALUE="var_link=<?php echo $id2; ?>&var_link2=<?php echo $id; ?>"> <embed src="flash/thumbs/<?php echo "$swf"; ?>" flashvars="var_link=<?php echo $id2; ?>&var_link2=<?php echo $id; ?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="150"></embed></object></noscript> And here's where I am trying to use the variables to create a link in flash: on(press) { getURL("selection.php?val=" + var_link + "&id=" + var_link2);} Thanks for your help.
  14. Ok, I've got the thumbnails displaying now! Except I forgot how I was passing the variables to flash before and now I've got to try to figure that out again.I was using FlashVars to pass the variables. I thought it was like this:<PARAM NAME=FlashVars VALUE="var_link=<?php echo $id2; ?>"> <embed FlashVars="var_link=<?php echo $id2; ?>" src="flash/thumbs/<?php echo "$swf"; ?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="150"></embed>$id2 is just a number from a mysql table, but it does not seem to work.
  15. I'm not having any problems passing the variables, I'm just not able to get the flash files to display on the web page.
  16. include("flash/thumbs/$file"); is including the html file that is created when you export a flash file as html. That file is the code that I posted below where I wrote "Here's one of the flash thumbnails:" on my first post in this thread (sorry I wasn't very clear about that). The reason I am including the html file instead of just the swf file is because the html file has all of the javascript that is required to remove the activex border. Thanks for your help!
  17. music_lp90

    Fields empty

    I don't have time to look through all of your code, but in quickly looking at it I think you are using the wrong names to get values. When you are getting the value of the breed you wrote this $dogbreed = trim($_POST['dogbreed']); I think you meant to write $dogbreed = trim($_POST['breed']); since you named the <select> field "breed" not "dogbreed". Same with gender you wrote $_POST['doggender']; , but named the field "gender" probably the other fields have the same problems.
  18. Hi, I'm trying to display flash files as thumbnails on a page. I had it working absolutely fine on browsers other than IE, but because of IE's unbelievably annoying activex border around embeded objects, I have been having a lot of trouble with trying to get rid of it. When you export the html from flash it takes care of getting rid of the activex border, so I am trying to include the html file into a <div> except I have made it into a php file so that it can get the variables that it needs to send to the .swf file.The reason I am sending variables to the swf file is because the link in the flash file is a dynamic link.Here's the php file that is trying to embed the flash into it: <?php include("connect.php"); ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Grant Portfolio: Web Design and Development</title><link href="css/styles.css" rel="stylesheet" type="text/css"><link href="css/port_styles.css" rel="stylesheet" type="text/css"><script language="javascript">AC_FL_RunContent = 0;</script><script src="AC_RunActiveContent.js" language="javascript"></script></head><body><div id="container"> <div id="top"> <img src="images/slices/top.gif" class="slice" style="padding-bottom:0px; "></div> <div id="nav_content_contain"> <!--middle--> <div id="middle"> <div id="spacer_nav"> </div> <div id="nav"> <?php include("nav.php"); ?> </div> <div id="spacer"> </div> <div id="content"> <?php $id = $_GET['id']; //this page data to display Section $query_nav = mysql_query("SELECT * FROM nav WHERE id = '$id' LIMIT 1"); while ($result = mysql_fetch_array($query_nav)) { $this_page = $result['link']; echo "<h2>$this_page</h2>"; } /* $id2 is passed to swf file to create dynamic link $title is the title of the thumbnail $file contains the filename of the .swf */ $query = mysql_query("SELECT * FROM section WHERE nav_id = '$id'"); while ($result = mysql_fetch_array($query)) { $id2 = $result['id']; $title = $result['title']; $file = $result['file']; echo "<div style=\"float:left;\"><h5>$title</h5>"; echo "<div>"; include("flash/thumbs/$file"); echo "</div></div>"; } ?> </div> </div> <!--bottom --> <div id="bottom"> <img src="images/slices/bottom.gif" class="slice"> </div> </div></div></body></html> Here's one of the flash thumbnails: <!--url's used in the movie--><!--text used in the movie--><!-- saved from url=(0013)about:internet --><script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '200', 'height', '150', 'src', 'th1', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'th1', 'bgcolor', '#0f4a63', 'name', 'th1', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'th1', 'salign', '' ); //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=9,0,0,0" width="200" height="150" id="th1" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="th1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#0f4a63" /> <embed src="th1.swf" quality="high" bgcolor="#0f4a63" width="200" height="150" name="th1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></noscript> Here's the flash link that needs the variables: on(press) { getURL("selection.php?val=" + var_link + "&id=" + var_link2);} If seeing the site helps at all, it's at www.grantportfolio.com these files are getting embedded into the Web and Illustration sections.Thanks for any help and please ask questions if anything needs to be clarified or explained further. I really appreciate your help!
  19. Ok, I've figured it out. The top image was inside of the container DIV. Instead, I placed it into it's own DIV and set padding and margin to 0. What a relief! Thanks for taking a look at it jlhaslip.
  20. Hi, thanks for the reply. I'm not actually using spacer gifs. I am using spacer DIVs. The reason I am doing this is I created the background in one div which repeats a 1px slice of the background that I designed in Firefox. I did it this way because of the drop shadows. I didn't want to create a bunch of different slices and plug them in in various places, so this allowed me to use one small gif file for the background. I had to use empty divs so that the background of the content and nav divs did not cover up the drop shadow areas of the background underneath them and this is working fine. I've tried padding and margin on pretty much everything that I can think of, but I haven't tried line-height, so I'll give that a try.Thanks
  21. The problem is underneath the top image where it says "Grant Portfolio" there is a space between that and the content/nav area below it. For Firefox there is no space below it, but on IE there is a 4 or 5 pixel space between the top area and the content/nav area. here's the current html code:<?php include("connect.php"); ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title><link href="css/styles.css" rel="stylesheet" type="text/css"></head><body><div id="container"> <img src="images/slices/top.gif" class="slice" style="padding-bottom:0px; "> <div id="nav_content_contain"> <!--middle--> <div id="middle"> <div id="spacer_nav"> </div> <div id="nav"> <?php include("nav.php"); ?> </div> <div id="spacer"> </div> <div id="content"> <embed class="intro" src="flash/intro.swf"></embed> </div> </div> <!--bottom --> <div id="bottom"> <img src="images/slices/bottom.gif" class="slice"> </div> </div></div></body></html> here's the current CSS: body { background-color: #c0c0c0; }img {}.slice { padding: 0px; margin: 0px; border-width: 0px; }h2 { font-family: Tahoma, Arial, Helvetica, Verdana, sans-serif; font-size: 28px; color: #B8CADD;}p { font-family: Tahoma, Arial, Helvetica, Verdana, sans-serif; font-size: 14px; color: #fff;}.highlight { font-family: Tahoma, Arial, Helvetica, Verdana, sans-serif; font-size: 14px; color: #CC9933;}ul {}.nav_list { padding-top: 10px; }li { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF; list-style-image:url(../images/slices/naVbullet.gif); padding-left: 0px; margin-left: -18px;}li a { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF;}li a:link { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none; }li a:visited { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none; }li a:hover { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none; }li a:active { font-family: Arial Narrow, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none; }#container { position:absolute; top: 15px; left: 20px; background-color: #c0c0c0; width: 765px; padding:0px; }#middle { float: left; background-image:url(../images/slices/background.gif); background-repeat:repeat-y; width: 765px; z-index:0; padding:0px; margin:0px; }.intro { float:left; width:615px; height: 360px; margin-left: -8px;}#nav { float: left; width:113px; z-index:1; background-color:#333333; }#content { float: left; width: 609px; z-index:1; background-color: #0F4A63; padding-top: 0px; margin-top: 0px; }#bottom { clear:both; padding:0px; margin: 0px; }#rights { background-color:#333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FFFFFF; text-align:center; width: 763px; height:30px;}#spacer { float:left; width: 15px; padding:0px; margin:0px; }#spacer_nav { float:left; width: 5px; padding:0px; margin:0px; }#nav_content_contain { float:left; padding:0px; margin:0px; padding-top: 0px; margin-top: 0px; } This is what it looks like, and please use Internet Explorer because that is where the problem is. http://www.grantportfolio.com/development/I have tried putting the bottom margin of the top image to -4px and that seemed to correct the problem on my version of IE, but then I checked on another computer with IE and there was a space there. I don't know what is causing the space if its the top div, the top image, or the middle div or something else. I'm beginning to think tables were easier, but I guess thats just because I have used them a lot more. Thanks for replying!
  22. Ok, I have it so it seems to work ok, but I'm not sure if this is a really acceptable way to do it. I took the image that I couldn't get rid of the space on and I set its bottom margin to -5px and it seems to work ok, but I don't know if this will end up screwing up more on other browsers or what.Thanks for any input!Here's the CSS body { background-color: #c0c0c0; }img {}.slice { padding: 0px; margin: 0px; border-width: 0px; }#container { position:absolute; top: 15px; left: 20px; background-color: #c0c0c0; width: 765px; padding:0px; }#middle { float: left; background-image:url(../images/slices/background.gif); background-repeat:repeat-y; width: 765px; z-index:0; padding:0px; margin:0px; }#nav { float: left; width:113px; z-index:1; background-color:#333333; }#content { float: left; width: 609px; z-index:1; background-color: #0F4A63; padding-top: 0px; margin-top: 0px; }#bottom { clear:both; padding:0px; margin: 0px; }#rights { background-color:#333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color:#FFFFFF; text-align:center; width: 763px; height:30px;}#spacer { float:left; width: 15px; padding:0px; margin:0px; }#spacer_nav { float:left; width: 5px; padding:0px; margin:0px; }#nav_content_contain { float:left; padding:0px; margin:0px; padding-top: 0px; margin-top: 0px; } Here's the html: <body><div id="container"> <img src="images/slices/top.gif" class="slice" style="padding-bottom:0px; margin-bottom:-4px; "> <div id="nav_content_contain"> <!--middle--> <div id="middle"> <div id="spacer_nav"> </div> <div id="nav"><p>Nav Goes Here</div> <div id="spacer"> </div> <div id="content"><p>This is a test</p><p>This is a test</p><p>This is a test</p><p>This is a test</p><p>This is a test</p> <p>This is a test</p> <p>This is a test </p> </div> </div> <!--bottom --> <div id="bottom"> <img src="images/slices/bottom.gif" class="slice"> </div> </div></div></body> What I want the site to look like is here: http://www.grantportfolio.com/333.html So far what I have done looks like this: http://www.grantportfolio.com/portfolio/Thanks!
  23. edit: this part is no longer relevant since I've changed it.this
  24. edit: this part has been deleted since I've changed it.
  25. edit: This first post is the original post, but I've changed the code quite a bit and have gotten close to what I want, but I'm not sure if the way I have it now is an acceptable way of doing this, please see the post at the bottom of this thread, thanks!Hi, I'm creating a portfolio website and this is my first time using CSS and DIVs for the main layout instead of tables. What I want the site to look like is here: http://www.grantportfolio.com/333.html So far what I have done looks like this: http://www.grantportfolio.com/portfolio/It does not look too good right now as you can see, It is also appearing differently based on whether you look at it in firefox or IE. here's the html <body><div id="container"> <!--top--> <div id="top"><img src="images/slices/top.gif" class="slice"> <!--nav --> <div id="nav_div"> <div id="nav_spacer"></div> </div> <!--content--> <div id="content_div"> <p>This is some test text. How does it work?</p><p> This is some test text. How does it work?</p><p> This is some test text. How does it work?</p> <p> This is some test text. How does it work?</p><p> This is some test text. How does it work?</p><p> This is some test text. How does it work?</p> <div id="right"></div> </div> <!--bottom --> <div id="bottom"> <img src="images/slices/bottom.gif" class="slice"> </div> </div></div></body> Here's the CSS body { background-color: #c0c0c0; }img {}.slice { padding: 0px; margin: 0px; border-width: 0px; }#container { background-color: #930000; width: 767px; padding:0px;}#top { float: left; padding:0px;}#middle { float: right; padding: 0px;}#right { float: right; padding:0px; background-image:url(../../Lyndon_Bible_Online/images/right.gif); width: 25px;}#bottom { clear:both; padding:0px; margin: 0px;}#nav_div { float:left; width: 127px; background-color: #333333; padding: 0px;}#nav_spacer { float:right; background-image: url(../../Lyndon_Bible_Online/images/middle.gif); width: 8px; }#content_div { float:right; background-color:#0F4A63; width: 640px; padding:0px; } I just put the red background in thecontainer to make spaces show up easily. The images that I am using in #right and #nav_spacer are 25px X 2px and 8px X 2px GIFs I wanted them to be able to repeat and stretch if the page gets taller.The page lined up pretty well in Firefox (not IE) before I added some text into the body. To see what it looked like without text in the content section go to : http://www.grantportfolio.com/portfolio/no_text.htmlThanks for your help, I really appreciate it!
×
×
  • Create New...