i have a Trajan Pro font on my site. when i put in the web, the people that donĀ“t have the font installed on computer is unable to see with the font that i choose. how can i load the font on my server? i beliave there is some way to do this
If Microsoft Sans Serif is installed, I want to use symbol ḳ but if that font is not installed then I want to use sans-serif k How do I test whether Microsoft Sans Serif is installed and then choose ḳ or k accordingly?
I've got several divs with the same id/name, and text inside (font- family:georgia,serif), and would like the users to be able to change the font, in case they don't like the default one. I have come up with this code, however it updates the divs' style only once, to 'arial', whereas I would like them to be switched to 'times new roman', 'verdana', back to 'georgia', and so on. All with consecutive click on a single link: Code:
I wish to modify the dimension of the font within a given table (that is, not yet in the whole page); when I hit a button, the font's size increases by 1 point; another button decreases it by 1 point (starting from the default size), and a last button will reset it to the original size.
Pratically, whichever might be the default size (which I set from three css, swapped accordingly to the screen's res), the text inside that table it should be resized only by step of +1 or -1 point from the default size. Any ideas?
I notice when I design a basic HTML page, it is affected if a WinXP user has Large Fonts set in their Control Panel. However some pages, e.g. www.bbc.co.uk/news are unaffected by this I think. They are definitely not affected by changing the font size within the browser.
Because I want to add tables, which will word-wrap incorrectly if the font size is changed, how can I disable allowing the browser to do this?
Basically I want the font size to stay how I designed it. If they need it bigger, they can use the zoom option in more recent browsers. Code:
I'm trying to make what is hopefully a fairly simple script to randomize font size, font family, image sizes etc. on a page using a.click and disabling the normal hyperlink function.
Essentially looking to "destroy" the page randomly each time a link is clicked.
I'm not a web developer, but a web editor who has limited technical experience (compared to some of you guys). I've been asked to change our company website, so that if viewed on an iphone or a machine with Flash disabled, an alternate or fallback image will appear.
I've found several articles, including ones on Adobe, but cannot get anything to work. I think I'm right in assuming I need to put a Javascript call to check for Flash in the HTML of the page, but then to also add another line of code that will point the browser to the fallback image if Flash isn't present.
Two JS questions:1. Is there a way to check (using JS only) if the user have local admin privileges on the local machine?2. Is there a way to check (using JS only) if office 2007 or office 2007 compatibility pack is installed on the local machine?
I am totally lost on this. this is it. i have a page which has a text box.when i click on the browse button,i need a javascript code which will directly find the CD drive installed on the system and open the contents.
I would like to get a web client's IP where the client is behind a firewall. I googled but hasn't found any solution with javascript that work's. There seems to be a java applet that can do this, but i would like the applet to put it into a "hidden" tag or into a textbox on the HTML page, so when the user clicks "OK" it will be posted to my PHP script.
In my html page i've to show a grid with some data retrieved from an xml file ... i need to this beacuse i've to use online, on a webserver and offline with all files on a usb key, cd, etc ...
which is the best way to accomplish this?
I suppose a solution it could be via javascript:
-locally open the xml file that contains the data e then render then grid. Now i wornder about the best way to do this ... i've read about xsl transofrmation and so on ... if it's possible i'h to achieve this with a cross-browser solution!
Is it possible to add a js function to a loaded web page on the client side? E.g. IE is viewing google, can I add a javascript function to that instance of IE viewing google? I am trying to hook browser events such as button clicks and get information such as edit field text.
I want to create a link that a user can click which will create a popup telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString(); alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely, this piece of code used to work but all of a sudden it doesn't for some unknown reason. Can anyone tell me what's wrong with the above code?
I want to know about a method for detecting client's IP which is running behind a proxy server. Is there any possible way in Javascript to get the IP address of the client's machine which is using proxy.