ev5unleash
Members-
Posts
181 -
Joined
-
Last visited
Never
Everything posted by ev5unleash
-
Hey Everyone, I'm having trouble with PHP include once again. I'm using this code <?php include('indextop.html'); if( !isset($_GET['id']) ) { $xid = 'default'; } else { $xid = strtolower($_GET['id']); } switch($xid) { case 'about': include('about.html'); break; case 'default': include('indexhome.html'); break; case 'jailbreak': include('jailbreak.html'); break; case 'jailbreak1': include('jailbreak1.html'); break; case 'jailbreak2': include('jailbreak2.html'); break; case 'jailbreak3': include('jailbreak3.html'); break; case 'jailbreak4': include('jailbreak4.html'); break; case 'download': include('download.php'); break; } include('indexbot.html'); ?> My problem is that when you enter something that is not a case like page.php?id=sjhfksjdhflksajdhf then it will be a blank page. I would like to have the page default to the indexhome.html page instead of leaving it blank. I'm also having a problem where I cannot include multiple times, like index.php includes to download.php that has another set of pages, if I do this, I would be presented with a blank middle page. Could anyone help me? Thanks.
-
Hey Everyone, I'm currently trying to create a website with tables, but I'm having a problem with this random space being rendered before my main text on the page. It's right before the header where a random space appers, but I don't have anything there that would cause a space. Could anyone help me with this? Thanks http://ev5unleash.dnsalias.org:1212/websites/techsupport/ <!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=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body onload="MM_preloadImages('images/home2.png','images/Services2.png','images/forums2.png','images/chat2.png','images/about2.png')"> <table class="table" border="0" align="center"> <tr> <td height="224" colspan="3"> </td> </tr> <tr> <td height="45" colspan="3" align="center" valign="top"><a href="?"><img src="images/home1.png" alt="Home" width="100" height="28" id="Image1" onmouseover="MM_swapImage('Image1','','images/home2.png',1)" onmouseout="MM_swapImgRestore()" /></a><a href="?id=services"><img src="images/Services1.png" alt="Services" width="120" height="28" id="Image2" onmouseover="MM_swapImage('Image2','','images/Services2.png',1)" onmouseout="MM_swapImgRestore()" /></a><a href="phpBB3/"><img src="images/Forums1.png" alt="Forums" width="120" height="28" id="Image3" onmouseover="MM_swapImage('Image3','','images/forums2.png',1)" onmouseout="MM_swapImgRestore()" /></a><a href="x7chat3"><img src="images/chat1.png" alt="Chat" width="120" height="28" id="Image4" onmouseover="MM_swapImage('Image4','','images/chat2.png',1)" onmouseout="MM_swapImgRestore()" /></a><a href="?"><img src="images/about1.png" alt="About" width="120" height="28" id="Image5" onmouseover="MM_swapImage('Image5','','images/about2.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> </tr> <tr> <td width="83" height="781" align="center" valign="top"> </td> <td width="720" align="left" valign="top" ><p class="header">Welcome!</p> <p>Hello!</p></td> <td width="83" align="center" valign="top"> </td> </tr> <tr> <td colspan="3" align="center" valign="top">© 2009 Evans PC Services</td> </tr> </table> </body> </html>
-
Ahh, It wasn't a code problem. When I updated, the new update disabled some file php extension. Thanks, Anyway.
-
I know that but services.php is right next to it. How is it not seeing the file?
-
I get this message Warning: include(services.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\websites\techsupport\index.php on line 16 Warning: include() [function.include]: Failed opening 'services.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\websites\techsupport\index.php on line 16 And services is right next to the index.php file. What's going wrong?
-
Hey Guys, I've been using PHP Include a lot for website navigation. Now, Ever since I've updated my PHP server the PHP code I've been using doesn't work. Could anyone rewrite it so it does? I don't have the option of downgrading at this point. <?php include('indextop.php'); if( !isset($_GET['id']) ) { $xid = 'default'; } else { $xid = strtolower($_GET['id']); } switch($xid) { case 'services': include('services.php'); break; case 'default': include('indexhome.php'); break; case 'about': include('about.php'); break; case 'teacherauth': include('pages/teacherresources/auth.php'); break; } include('indexbot.php'); ?> Thanks
-
Editing this Javascript so that it adds #
ev5unleash replied to ev5unleash's topic in Javascript Help
That did it, Thanks! -
Editing this Javascript so that it adds #
ev5unleash replied to ev5unleash's topic in Javascript Help
Yeah, I do it's this <input name="button" type="button" id="button" onclick="document.body.style.backgroundColor = document.getElementById('cp1_Hex').value" value="Apply Background Color" /> -
Editing this Javascript so that it adds #
ev5unleash replied to ev5unleash's topic in Javascript Help
It's the same as that link except I added you're code to my page. -
Editing this Javascript so that it adds #
ev5unleash replied to ev5unleash's topic in Javascript Help
I've tried adding that to the page, but it still doesn't add # to the textbox. -
Hey Guys, I'm not that good with JavaScript but I was wondering if someone could help me. I'm using this javascript http://johndyer.name/lab/colorpicker/. I'm trying to use a button to set that color code as the background but it doesn't work because the # is not present. Could someone give me a modified script where it adds the # before the generated color code?
-
I finally solved this with <li><a href="#" onClick="document.body.style.backgroundImage = 'url(systemfiles/images/blank.png)';">Remove logo</a></li> . Thanks for the help.
-
Dude, I've tried that exactly how it is except with document, this, and body. And that still doesn't work.
-
I've tried <li><a href="#" onClick="document.style.backgroundImage=url('...')">Remove logo</a></li> and <li><a href="#" onClick="document.style.backgroundImage=url('systemfiles/images/blank.png')">Remove logo</a></li> . Still does not work on page. Could you fix the code so that it does change the background image to my "blank.png"
-
This isn't the same as my other thread. On my other thread, I have a button change background images of tables. For this one, I want to have a button clear the background image of the page. I tried tweaking around with <li><a href="#" onClick="document.style.backgroundImage=url''">Remove logo</a></li> but it doesn't work.
-
I basically want a button that would clear any background image (if present)
-
Hey guys, How do I make a button clear the background image so that it's just the background color? Thanks
-
[SOLVED] Button to change images on a page?
ev5unleash replied to ev5unleash's topic in Javascript Help
Thank you, this worked perfectly. -
[SOLVED] Button to change images on a page?
ev5unleash replied to ev5unleash's topic in Javascript Help
Here's an example of what I"m trying to do. I need the onClick code to be modified so that it actually works. <!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=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- #apDiv1 { position:absolute; width:300px; height:145px; z-index:1; left: 239px; top: 40px; background-image: url(/websites/sbsolution/systemfiles/images/accesspanel.png); } #apDiv2 { position:absolute; width:300px; height:145px; z-index:2; left: 578px; top: 44px; background-image: url(/websites/sbsolution/systemfiles/images/accesspanelred.png); } --> </style> </head> <body> <div id="apDiv1">Layer 1</div> <div id="apDiv2">Layer 2</div> <input name="change" type="button" id="change" onclick="document.getElementById(apDiv1).style.backgroundImage = url(websites/sbsolution/systemfiles/images/accesspanelred.png);" value="changeimages" /> </body> </html> -
Yeah, there might be other ways. But I have no idea what those other ways are.
-
lol, thanks. I'll see if that works. And what's annoying you about my tables? I only use them this way because it's the only way for them to look good in IE.
-
[SOLVED] Button to change images on a page?
ev5unleash replied to ev5unleash's topic in Javascript Help
Sorry about the confusion, I want to have the both layers pictures changed to the others. Like Layer1's background changed to bg2.png and Layer2's background changed to bg1.png on click. I don't want the images swapped so much, I want the images changed to something else on button click. -
[SOLVED] Button to change images on a page?
ev5unleash replied to ev5unleash's topic in Javascript Help
You don't understand, I don't want the JavaScript literally to swap the images. I want one the button click to change then to the selected location so I can implement this in another thing with layers. I want to use this so I can make a theme system. -
Hey Everyone, I'm trying to create a button that will change a bunch of images to something else. (Example. There are two layers, I want to change the 1st layer's background image to the 2nd layers, and the 2nd layers background image to the 1st layer's using the onClick event.) http://ev5unleash.dnsalias.org:1212/imagechange.html Thanks
-
[SOLVED] Background color picker (Background button)
ev5unleash replied to ev5unleash's topic in Javascript Help
Thank you!