I have developed a new site in PHP.Its done using modules and call each page in index page :[URL]... But my client want a color change on the current page select. So how can I do it using JS ?
My project is stated in the title, I want to let users who want to see my portfolio click on a button and the portfolio page slide over my index page. Ex. at www.visumdesignz.com over to the left is a button that says portfolio. when you click on it an extruder pops out, I used the extruder for another function, I decided I didn't want that function, but it gave me this idea. I want the extruder to slide over all of the content.
I noticed the facebook app has a similar function to what I am looking for, take a look at it, when you are looking at your dashboard the news feed slides off to the side, that's a similar idea, even though this isn't mobile, you get the idea, at least I hope.
Can someone direct me to a tutorial that will give me step by step instructions on how to link xml to my index page. I don't quit understand the concept around xml. and how it work with an index page
I want to use the same Photoslider II code but for three different slideshows on same index page. The problem is one works fine but when I add another one on same page everything gets screwed up. The code is below but how can I make adjustments so each one works independently? Code:
So I'm making an ecommerce store and I'd want to hide a product scroller and a banner if the page is any other than index.php, and I know jQuery has the .hide function, but all the examples link it to a button/link/other but I don't understand how to code a conditional statement that hides the code if the page loaded is anything else than index.php.
Would like to say right away that I'm a massive newbie on this and the project below is something I'm creating for others but also to help me learn at the same time. First of all I have my Index file. This contains 3 divs (MainDiv TopDiv and BottomDiv) in which I load iframes onto using innerhtml using this code.
function loadPageX(pageAddress,containerID { var el=document.getElementById(containerID) el.innerHTML="<iframe src="" + pageAddress + ""height="100%" frameborder="0" width="100%" ALLOWTRANSPARENCY="true"></iframe>"
I need guideline with a script I am using for a link on my index page to load up a different page with two iFrames on it and at the same time load up different pages in each of these iFrames. I have achieved this with only one iFrame so far with this script:
So basically when I click on Link1 on Page1 it takes me to Page2 with iFrame1 with a page loaded and iFrame2 with nothing loaded whereas I would like Link1 on Page1 to load up Page 2 with two different pages loaded in the iFrames all at the same time.
I have a site built in CI and I have integrated a js/jq image slider into the index page. I linked all the files to the correct places but for some reason the js isnt working? Some of the fonts in the slider are controlled by js files, and they are displaying correctly, so i know the files are linked ok, but for some reason its not grabbing the code to control the slider. I am not sure if its something to do with the file structure used in ci? Is there something I need to be adding in any config files to make js work in ci? I also tried nivo slider and had similar results. and ive had no luck at all finding a slider built for use in ci....
I am trying to load a different index.html page for each different screen size that the browser has. So the page looks best at different resolutions.I am not really able to test it since I haven't finished building all the different resolution index pages yet. I am just wondering if anyone sees any glaring errors in my coding.This is my script:
<script src="javascript/stndlibrary.js"> var screendim=getWindowSize(); var screenwidth=screendim[0];[code]......
I can't alert the history array of the index page or use that arrays indexOf to read and write it to go back to predetermend conditional index of that array? If I could alert the history array and read the array elements then I might be able to write and go to one of the history array elements specificaly? So I might be able to use window onload to create an array that stores the classname of a div every time the divs classname is changed then go back in page history to the classname specified? code...
How would I be able to display $yes in the index.php page after the modal window of profile.php is closed? Or how would I be able to refresh the index.php page after profile.php page is closed?
I have just bought a JS animated web template. I made changes to the file names on the splash page (index.html) and 2 landing pages www.keithmacstanton.com/dez Now everything is all messed up.
I have tow page and the first page open a new window with javascript(by using window.open).Now I want to call a javascript function that is in the first page from the second page and for that i use parent.function_name but it doesn't work.How can do so?
How to call javascript function in a web page?e.g. Putting the following code alert('test');in a web page will display the string "alert('test');".No alert box appears.
I have a web site which main page is index2.html I need a script that when I refresh the page it takes me to index3.html or index#.html in a random fashion. the list of index numbers is 10 so far.
I am trying to call submit.php with ajax but nothing was happening. when I narrowed it down I found that http.status=500.everything i have read about this says that this is a server error but I can put other website in the same folder on the same server and it works fine.this is the ajax call
I'm basically checking a user login. If the login is successful I'd like to close the Fancybox. This part works fine. I'm using an iFrame from Fancybox. If I don't have this part:
parent.$.fancybox.close();
It will reload the index page in my iFrame. How can I refresh my other page from the iFrame?
I have a ajax function implementation: when the user is on one site, the ajax call keeps checking the server every 5 seconds if there is a server url change. If there is, there will be a message displayed to direct the user to go to another site. when the user go to another site, the ajax keeps checking every 10 seconds, if there is condition met, the message will be displayed to direct user to go back to the previous site. Also, after the message is displayed, ajax call keeps checking if there is another condition met, if there is, the message will automatically disappear.
The use case is: when one server is down, the message will direct the user to another site. On another site, when the previous server is up, the user could be redirected to the previous site. When the message is displayed (when server is down), the user may not follow the link to do anything. He/she may simply leave the message on and go to lunch or something, when he/she comes back, the server may be already up and the message should be disappeared instead of keeping showing the message. Therefore, the message should be displayed or disappeared automatically based on the ajax call condition.
I implemented the ajax function and it did check and displayed message. However, it wont' display the message only right after the user login or the user does a "refresh" to the page. After the message is displayed, when another condition met, the message won't disappear until the page is refreshed. Then the ajax calls keep doing every 10 seconds. The ajax call seems fine since when I set a alert, I did see the popup message show up every 10 seconds (but only after I refreshed the page.) Now the problem is: the message can't be automatically displayed. It can only happen when there is new page load (refresh). How can I solve this problem. I'm thinking of putting "windows.location.reload;" to load the page right after the condition met. But kind of feel I don't need to do this.
i have a function test() in a external js file i want to call it in my .aspx page how do i call it i tries using dim dv= externalfile.getfilters() ealier my function was in the same page and hence wrking fine dv= getfilters()
Attempting to develop [URL] The site uses the onclick() to call a random link.All the links seem to be heavy on the page.Is it possible to store them elsewhere, like a separate webpage?
how to call my js function on the HTML page. This is a homework assignment and I've written the code but I just can't make it work. I can get the prompt boxes but the results don't show.
The assignment is to calculate basketball ticket prices. Each ticket has a base price. An up-charge or down-charge % is applied to the base price depending on the seat location. Courtside seats command a 20% premium upcharge Lower bowl seats have a 12% premium upcharge Inexpensive upper bowl seats cost 5% less than the stated base ticket price. If more than 8 tickets are purchased, 5% will be deducted from the total.
I have to use prompt() in my html page to prompt user for information. Then I'm to call the function to calculate the answers and build HTML to ouput.
look at what I have and offer advice as how to fix my code.
Here's my js file: function calcTotalTicketCost(baseTicketCost, totalNumberTickets){ var courtside = 0.20; var lowerbowl = 0.12;
Two quick posts in my first hour of joining this site -- from what I see it's a great resource, so I'll throw out another question I have.I was looking in the firebug debugger and noticed that my main .js file was somehow being called twice, but I don't see where. There are dozens of files involved in this particular problem, so I think the best way to go about solving it is to test - in run time - if my js file is already in place on the page, do nothing - otherwise call it. This is pseudo that I have monkeying around with but it's not working.
Code: function checkFile() { var fileExist = new fileExist();
I was created web page..In this web page there is the <ifream> and i load the web page to the <ifream> in parent page load event via internet.I have two links in Prent HTML page called Google and Yahoo.Default Google link is enable and page load event the <ifream> load URL...My question is While I reading google page ,Yahoo page also loaded to the browser cache(but it is not show as a tab).when i click Yahoo link,yahoo page must be loaded by using cache fastly [because when i use severel web pages to load via one ifream. while one page read ,next page also load(but not appear ,there the speed is height )