I found this code snippet via a Google search and it is exactly what I need, but I'm not sure how to implement it. I'd like to use it to run specific code depending on browser. For example, if Firefox, then simply use linked Javascript, if IE/Chrome, then I'd like to use alternate code (HTML and...
This is the complete bit of code from my header.tpl. Currently, it will only display the hidden JS pop up if there are new site updates AND you refresh the page. I'd like it to auto-refresh say every 30 or 45 seconds, perhaps sooner for a more "real time" feel to the site.
I'm still a JS...
Here is some code someone wrote for me (the first section) and I put on my site in search2.tpl (I use Smarty templates). The second code bit is the search form on page ONE of my test site, and the third code bit, the entire template from page TWO (incorporating the code from the first section)...
I'm sure the answer to this is easy, but I'm a php/javascript noob, hence my question. The two pieces of code, ending with "document.getElementById('searchLink').style.display = 'inline';", works visually perfectly, but now I want to figure out how to get the input entered in the first...
I just added the below code to my site:
<script language="JavaScript" type="text/javascript">
function showDiv(){
if(document.getElementById('showDiv').style.display == 'none'){
document.getElementById('showDiv').style.display = 'block';
}else{...
I have a site that gets confused if someone logs in WITHOUT the "www" in their URL. Is there a way for index.php to automatically add the "www"? This would be a huge help!
Thanks!
I am trying to add an advanced accordion Jquery based script to my site. It seems to interfere with the other scripts on my site, mostly any AJAX. I first tried to add the below to my site's header, and it would load for a split second, then would stay stuck at "Connecting..." in my browser but...
Ever since upgrading to Windows 7 64 bit Pro, I've noticed that I can't take screenshots of games I'm playing. I get a blank, black screen, whether I use Prtscrn and Paint, or one of various screenshot programs I've tried.
What is going on? Does this have a fix? I'd like to use a screenshot...
I recently bought/installed Windows 7 64 bit Pro full retail and upgraded my PC to 4 gigs of ram and an EVGA Nvidia Geforce GTX 580 with 1.5 gigs video ram. The system easily detects all 4 gigs of system ram however seems to be sharing it with the video card as the video card reports 2.9 gigs...
I currently run Windows XP Pro on my main hard drive, and I want to install Linux Xubunto 10.10 on my second hard drive. I read that this can be done, but my question is, how do I setup the dual boot? Will the Linux installer automatically update the MBR on the main drive after it finishes...
I run a social networking site and it has an advanced newsfeed feature. I want to use ajax and a clickable link to refresh just the newsfeed and not the entire page. The code is held in a javascript tab as seen below and I've already added a basic link to refresh the entire page. The specific...
I have some AJAX tabs on my site but want to show them centered on the page. Each tab is genereted in it's own HTML table as follows:
<table cellpadding='0' cellspacing='0' style='float: left';>
<tr>
<td class='profile_tab' id='profile_tabs_activity' onMouseUp="this.blur();">
<a...
Below is some code I'm working with. I am still a newbie to PHP.
I want to insert a bit of code in the red highlighted section, directly before $user that will display an image file (.gif) that I specify and pass it along with the rest of the variables. I have not the slightest clue how to do...
I am thinking about getting a new video card, probably an Nvidia GTX 285 with 1 gig ram or something similar. My question is will this increase the performance of games on my PC? Here is my current specs:
AMD Athlon 64 FX60 dual core CPU
2 gigs low latency RAM
Western Digital SATA hard drive...
I have a generic v.92 56k dial up modem. For the past couple months or so it has steadily declined in connection speed. It normally connected at 40k but then it was 38k, then 36k, then 33, 32, sometimes 21 or 25. I changed the PCI slot it is in with no effect. I also changed the phone cord...
The following code produces a page which displays photo albums. But they are displayed one on top of the other. I'm trying to figure out how to make them be displayed TWO per row, next to each other instead. The below code is the PHP source, and after that the template file. It contains a...
I just installed a game (Left 4 Dead) and first I got a "binkw32.dll not found" error when trying to run it. So I downloaded this DLL file and placed it in my Windows XP Pro system dir. Now I get this error:
"The procedure entry point _BinkSetMemory@8 could not be located in the dynamic link...
I want to get the fairly new game Death Track Resurrection. The requirements state it needs Windows XP SP3. I have Windows XP Pro SP2. So my question is simple, do I absolutely have to have SP3 to run this game? I've spent the better part of an hour and a half and could not manage to even...
I'm upgrading from a GeForce 7900 GTX to a GeForce 9800 GT. I'm currently using ForceWare 178.xx and have downloaded the newest ForceWare 185.xx drivers. How do I go about upgrading the drivers? Should I uninstall the old ones first, then put the new card in, and install the newer drivers? I...
I am interested in buying either this video card: Nvidia GeForce 9800 GT OC 1 gig which requires at least a 425 watt PSU, or this one Nvidia GeForce 9800 GT OC 512 megs which requires at least a 400 watt PSU.
I have a really nice 430 watt Antec TruePower 2.0 PSU. Which of these cards should I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.