|
|
Posted in Computers & Tech / Programming / Scripting / JavaScript
Author: soleimanian Total-Replies: 21 Please help me! I want to in popup massage suggest to visitors of my site to make my site their home page . Please note that I have some script code that visitors most click on a text to make my site their home page . Every one that can help me please send an email to soleimanian@noavar.com
Sun Sep 5, 2004
Reply New Discussion
Posted in Astahost / Asta ANSWERS!
Author: (G)SamsonT Total-Replies: 0 Please helpHow To Create A Popup Window With Javascript? Please, I need help , can any one help with useful resources on how to make this popup . I have been searching the internet for the solution bu cannot get any useful help. Please can anyone help. This is what I want to achieve, the sample is on the home page of this PFA site on default or index page:Http://www.Armpension.Com/This div floats from the left side of the window and when click on the close X symbol the div floats to left side .Please help.Thanks -question by SamsonT
Thu Jun 16, 2011
Reply New Discussion
Posted in Astahost / Asta ANSWERS!
Author: (G)David Total-Replies: 0 Website security & e-commerce problemsHow To Create A Popup Window With Javascript?Hi all, I am David and I new. As a beginner, I'm working on a special game. I have a few questions regarding website1. In my web site, the player will have to pay with their cards or paypal before they begin the games. But how to make sure the players won't use the IE browser to reverse or forward to skip the payment gateway? How to freeze the rest of the pages so that player won't slip pass the gateway. In other words, how to safe guide our games. Or to make sure that the players will have to pay but no other way to gain access to the page. How to do that?2. All the pages have a home button on the top left corner. If the players press on it, it must prompt up a message such as ;Are you sure you want to exit game. Yes or No.The player must chose either yes or no in order to proceed.How to create a prompt up message with yes or no build in button / check button / radio button?3. I plan to have several games in my website, each of them is charged differently. If I chose paypal or anything similar, how can I monitor the numbers of players who choose a specific game. It must be invisible to al players but totally visible to me only. This is to monitor the payment from the players, also it helps me to survey the popularity of a specific game.Please help. Thank you-question by David
Tue Sep 29, 2009
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / JavaScript
Author: miCRoSCoPiC^eaRthLinG Total-Replies: 7 The post title summarises my query - how do I create pop-up windows that are embedded inside a page? Broadly, there are two kinds of JavaScript pop-ups.. one is that ultra annoying one, which pops out a new instance of a browser window and displays something there (usually an ad) - made infamous by all the warez and porn sites. Second one, which has come to be quite well-known of late is the kind you see in recent versions of WordPress (in the Visual Editor) as well as LightBox based galleries. Here a small window (or rather a div) pops-up embedded in the middle of the page. It's a floating div that can be dragged around anywhere. A similar notification window can be sighted even in the recent versions of IPB when you receive a new PM. This is exactly what I want to create - but I dont have no clue how to go about it. I tried searching for "embedded" "pop-up" etc. but always got tutorials for silly JS popup windows... Can anyone help shed light on this? And don't ask me to study the lightbox code - I already did. But my JS is so pathetic I couldn't do much with it. If you can point me to a good tutorial that shows you how to do this it'll be great Cheers, m^e
Thu Mar 8, 2007
Reply New Discussion
Posted in Computers & Tech / Software / Freeware
Author: TavoxPeru Total-Replies: 1 Ferant DHTML Studio Lite is a free browser-based wizard that may be used to create DHTML windows or pop-us in 3 easy steps:
It's written in Javascript and the scripts are compatible with most browsers, including Internet Explorer, Netscape Navigator, Mozilla, and Opera, so you only need a browser to run it Unfortunately this software is a bit older and seems like the creator simply disappear because i don't find any update available and it's website simply redirecting to another website. You can download from here Best regards,
Fri Jul 7, 2006
Reply New Discussion
Posted in Computers & Tech / Internet and Websites
Author: szupie Total-Replies: 4 Firefox uses the Gecko engine created by Mozilla to render pages (and to render its windows' layout too!), while Internet Explorer uses... uses its Internet Explorer engine. IE's engine uses many many codes that Microsoft invented on their own. However, most of them do not follow web standards. The Gecko engine closely follows web standards (it's very hard to completely follow them -- only 2-3 browsers can currently do this), so the codes you write for IE probably won't be executed by Firefox. But if your code follows web standards, IE will probably understand it, though there might be a few exceptions.
Thu Apr 20, 2006
Reply New Discussion
Posted in Computers & Tech / Designing / Web Design and HTML
Author: (G)Vey Noue Total-Replies: 12 about random imageRandom Images On Eacht Pageload And Refresh. I want to know how to create random image.I want to create 1 line that have 7 row. Now 1 row is workHow can I do? -reply by Vey Noue
Sat Jul 2, 2011
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / JavaScript
Author: FeedBacker Total-Replies: 24 I have a question too. I am creating a site and I need to make a picture that will enlarge when it is clicked. I could use javascript for that or simply <img src="myimg.jpg" onClick="window.location=src"> something like this, I can't remember the sintax exactly, but my problem is that I need to make the pic enlarge without using onClick, or onSubmit or other things like that. I am using a program (typo3) wich will map it and by doing that the picture will lose the onClick part. I also need to use the same code for many pictures. if you have any idea about this pls let me know... and I hope I explained it right cuz I'm not to good in explaining my thoughts.thanks -cami
Mon Nov 19, 2007
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / PHP
Author: pyost Total-Replies: 9 There is no way to notify the user as soon as something happens, but checking it in equal intervals with AJAX seems like the best solution. You just need to create a JavaScript function that would check if there is anything, and then call itself again in let's say 15 seconds. As for the "Last Active" problem, one way is to check it when any script is accessed. For example, User1 closes his/her browser, and then there is not activity on the web site whatsoever - nothing is deleted. However, when User2 requests a certain page (doesn't matter which one), you first run the "last active" script, in order to clear user that left, and then display the page User2 requested. I think it might also be possible to achieve this with cron jobs, but I have never used them, so can't tell you with certainity.
Thu Jul 19, 2007
Reply New Discussion
Posted in Computers & Tech / Designing / Web Design and HTML
Author: pbolduc Total-Replies: 20 I too like javascript. It is extremely versital. You can accomplish just about anything with it. When to use it? Well, I use javascript on just about every site I build in one form or another depending on what it is I am trying to accomplish. Primarily I use it from graphical effects such as random image and html. It works well for image roll-over scripts, although I mostly use a text roll-over script like the one in my tutorial I post on creating a text roll-over verses an image roll-over. Javascript works well for creating code generators. I often write a code generator in javascript to create additional pages for my client's site so that they can add pages and text themselves and not have to pay me to do it for them. Combined with SSI, javascript can be as powerful as any other language allowing you to create pages on the fly depending on user interaction and it can write to and retrieve from a database. As I have stated quite a few times, I am self taught and I found javascript to be easy to comprehend and implement. I will always use javascript in my design, but as I am finding out, languages like php are more stable, while offering the same, if not more versitility. pete
Tue Dec 28, 2004
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / JavaScript
Author: mastercomputers Total-Replies: 11 I was meant to come back to this post ages ago, forgot all about it. My new test demo is at: Test Demo 2 Now I've had reports of some strange activity in IE though I'm not sure what they are as I don't have IE to test. Hopefully this works better for Firefox and Opera now. The whole idea was to create something that looks like a dropdown menu using an unordered list. Cheers, MC
Sun Feb 14, 2010
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / PHP
Author: sid.calcutta Total-Replies: 6 Here is a PHP Script which may help you. First of all, Let us create a table named tbl_test in a MySQL Database. The table contains three fields: 1. field_id 2. category 3 description Now here is the CREATE TABLE CODE for you. First of all, we'll drop Table, if it exists. CODEDROP table if exists `tbl_test`;Now we'll create the table tbl_test. CODECREATE TABLE `tbl_test` (`field_id` int(11) NOT NULL auto_increment, `category` char(20) default 'General', `description` char(100) default 'Not Specified', PRIMARY KEY (`field_id`) ) Now insert some test data in the table. Now is the time to play with the following PHP Script. The script starts at this point. CODE<?phpglobal $db_name,$db_host,$db_user_name,$db_pass; $db_name='test'; $db_host='localhost'; $db_username='test'; $db_pass='test'; Connecting to Database: CODE$new_file="myfile.csv";Consider giving a dynamic file name rather than a static one. This is the file that will store the fetched data. Create a file using fwrite(): CODE$fp=fopen($new_file,"w");if(!$fp) die("Error creating file"); It will be used later on to store the fetched records. CODE$link_id=mysql_connect($db_host, $db_username,$db_pass);if(!$link_id) die("connection failed"); Hopefully you can add a more appropriate error handler. Setting the current database: CODE$current_db=mysql_select_db($db_name,$link_id);if(!$current_db) die("error connecting host"); Creating a HTML table CODEecho " <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">";echo "<tr>"; The table will hold a form which will display the options ( i.e. category as in my example). Your users will choose a value from the options given. CODEecho "<td><form name=\"form1\" enctype=\"multipart/form-data\" method=\"post\" action=\"$PHP_SELF\">"; echo "<p>Please select a category </p>"; Now selecting the records ( i.e. category) one after another from the category table and displaying it in a list box CODEecho "<select name=\"category\" size=\"1\">";$search_string="SELECT DISTINCT category FROM tbl_test"; $result_of_search_string=mysql_query($search_string); while($data_search_string=mysql_fetch_row($result_of_search_string)) { echo "<option> $data_search_string[0] </option>"; } echo "</select>"; A simple one line instruction for the user: CODEecho "Click here to start :";CODEecho "<input type=\"submit\" name=\"Submit\" value=\"search\">";echo "</form>"; echo"</tr>"; The FORM ends at this point Note the action attribute of the FORM tag set to $PHP_SELF So when the user clicks on the submit botton the same page reloads with a value saved in the $category variable. Now we'll show the record based on the options chosen by the user. CODEecho "<tr><td><h2> Your records </h2></td></tr>";Let us set few global variables. CODEglobal $records_per_page, $cur_page, $PHP_SELF, $search_category, $category;Checking if $category variable stotes any value or not, if it does not, we set it to default : General/ Or any value you prefer, but it must be the one of the values you have entered in the category field of your table. CODEif(empty($_POST["category"]))$search_category="General"; else $search_category=$_POST["category"]; Checking is done. Now we'll show the user, what value he wanted to see. CODEecho "You are searching for $search_category";Now counting the number of records found in the database for that category: CODE$count_query="select count(*) from tbl_test where category = '$search_category' ";CODE$result = mysql_query($count_query);if(!$result) die("error"); $query_data = mysql_fetch_row($result); $total_record = $query_data[0]; if(!$total_record) die('No Record Found!'); Now setting the page number. CODE$page_num = $cur_page + 1;Now setting the maximum number of records to be displayed in one page: CODE$records_per_page=10;You can use another form to allow the user to select the records per page as we have done for selecting the category from the table. Now we are calculating the total number of pages. CODE$total_num_page = $last_page_num= ceil($total_record/$records_per_page); CODEecho "<tr><td><CENTER><H3>$total_record found on $search_category - Displaying the page$page_num out of $last_page_num.</H3></CENTER>\n</tr></td>"; Now set the current page number. To start with it will have a value = 0. CODEif(empty($cur_page)){ $cur_page = 0; } Now we set the limit for the records to be displayed per page. CODE$limit_str = "LIMIT ". $cur_page * $records_per_page .", $records_per_page"; $new_query="SELECT description FROM tbl_test where category LIKE '$search_category'"; $query=$new_query ." ". $limit_str; Again a database query to fetch the records as per the option selected by the user. And display the records in a table. CODE$result = mysql_query($query);if(!$result) die("No record found"); while($data=mysql_fetch_row($result)) { echo " <tr><td> $data[0] </td></tr> "; // this will show records fwrite($fp,$data[0]); // this will write to the file fwrite($fp,","); // This is the ", " seperater } We have finished fetching records and at the same time stroring it in a file. Now we are creating links for the user to nevigate to continuation pages. CODEif($page_num > 1){ $prev_page = $cur_page - 1; echo "<A HREF=\"$PHP_SELF?&cur_page=0\">[Top]</A>"; echo "<A HREF=\"$PHP_SELF?&cur_page=$prev_page\">[Prev]</A> "; } if($page_num < $total_num_page) { $next_page = $cur_page + 1; $last_page = $total_num_page - 1; echo "<A HREF=\"$PHP_SELF?&cur_page=$next_page\">[Next]</A> "; echo "<A HREF=\"$PHP_SELF?&cur_page=$last_page\">[Bottom]</A>"; } Now we'll allow the user to download the file. CODEecho "<tr><td><a href =\"$new_file\">Click here to download</a>";Our task is over. Now some closing HTML tags again. CODEecho" </Td>";echo " </tr>"; echo "</table>"; ?> So far as the present script is concerned, I got a great help from a book entitle BEGINNING PHP4 published by Wrox Press Ltd. Infact page transition part has actually been scripted in that great book. It works nicely. Regards, Sid
Mon Mar 13, 2006
Reply New Discussion
Posted in Computers & Tech / Operating Systems / Windows (All Versions)
Author: wutske Total-Replies: 25 I have no idea if this will work for XP Home users since I only have XP Pro here, but this is the registry-way of disabling the information bar: - Open regedit (Start > Run > regedit ) - Navigate to HKLM\Software\Policies\Microsoft\Internet Explorer\Security - If those key don't exist, you'll probably have to create them. They are case-sensitive !!! - Now, create the following DWORD (CASE SENSITIVE !!!): DisableSecuritySettingsCheck - Give this DWORD the value: 1 Btw, messing with the reigstry is dangerous if you don't know what you are doing, one wrong move can be enough to mess up your whole computer. Everything you do in the registry is at your own risk.
Wed Sep 3, 2008
Reply New Discussion
Posted in Computers & Tech / Software / Internet & Network Clients..
Author: miCRoSCoPiC^eaRthLinG Total-Replies: 20 Firefox all the way Several reasons
Tue Jul 5, 2005
Reply New Discussion
Posted in Astahost / Your Voice! Your Review..
Author: Alexandre Cisneiros Total-Replies: 31 I use shortURL, and is verry good. Thgey have MANY features. There are: .Many Sub-domain options: -yourname.shorturl.com -yourname.2ya.com -yourname.vze.com -yourname.1sta.com -yourname.24ex.com -yourname.morroz.com AND MORE! There are 25 options! .Suport for WWW: If the user puts www. before the adress of your shortURL, it goes to your page normaly! No 404 Errors! .Path Forwarding: If you have the ShortURL yourname.vze.com and the real URL of your site is www.hosting.com/members/yourname and want to acess the diredory /joe in your real URL, you can create a link to yourname.vze.com/joe. .Prefix Path Forwarding: The same of the above feature, but is like this: To acess /joe, point the brouwser to joe.yourname.vze.com. .Prefix Forwarding: If you point the browser to yourname.vze.com or to joe.yourname.vze.com, you will go to the same point: the main page of your site. WARING: Chose this feature or teh Prefix Path Forwarding. .URL Masking: Normally, after your ShortURL.com forwards to your real URL, your real URL is then shown in the browser's address bar. Turning on URL masking, allows you to keep your ShortURL in the address bar by using a hidden frame trick. This frame is invisible to the user. Then, if visitors bookmark your site, they bookmark your ShortURL, and search engines will link to your ShortURL as well. 95% of our users choose to use this feature. .Frame Kill: Frame Kill forces your site to pop out of any frames it may be loading in. For example if another website links to you and opens your site inside their frame. How does this work? If you have URL masking turned on, we insert JavaScript code into the hidden frame. If URL masking is off, we create an invisible and temporary page loading the JavaScript to first pop out your site then use HTML to forward the user. This process is invisible to the user, other than seeing your site pop out of a frame. Usefull to LYCOS users. .Traffic Reports: With a ShortURL address you will have access to traffic stats with daily and monthly reports displaying unique and raw visits and referring URLs. We also calculate your unique/raw ratio and daily averages. The Referring URL Report allows you to see where your visitors are coming from! An hourly report displays all the URLs that have sent traffic to your ShortURL address, as well as a list of keywords used to find your site in search engines. .Mirror Management: If you have mirrors of your site you can use your ShortURL to balance traffic between them, or provide redundancy. This can be done two ways: 1) You can have ShortURL randomly forward to a mirror, weighing any URLs you wish to get more or less traffic. 2) Or, have ShortURL generate a page, providing visitors with a list your mirrors to choose from along with a description for each one. .Private Networks / Specific Ports: If you have a home/office network, and you can get your website to load: http://IP-ADDRESS-HERE then you can point a ShortURL there. If you need to get around a pesky port 80 block, then you can setup your server to work on another port (ie. 81) and include the number in the target URL by using: http://IP-ADDRESS-HERE:81 ATTENTION: shortURL puts one little, verry little frame on bottom of your page, nut if you upgrade to Premium, it disapears. Get the Premium by 2 manners: Paying or completing one of the partner campains. It consist in completing a survey, or sign up to one site, etc... ![]() shortURL Free Short URL since 1999. http://www.shortURL.com
Sat Jan 28, 2006
Reply New Discussion
|