JavaScript - Editing Epn Or Ebay Affiliate Editor Kit Code For Geo Targeting
Hello
I would like some help. The ebay editor kit produces code that is in javascript format. Is it possible to edit that javascript so it is IP geo targeted. Meaning that the javascript will show ads from the ebay site of the visitors country? I was reading the Ebay Partners Network blog and it stated it can be done using third party scripts and geoip database. If this can be done by php then any advice would be very greatfull. Thanks all in advance. Similar Tutorialshi, I have some HTML to edit in my database, in my back end administration I have it in a textarea but when I go to edit it, it all messes up and lots of '/' area added, see below: Code: Site Design by: <a href=\\\\\\\"http://www.jbiddulph.com\\\\\\\" target=\\\\\\\"_blank\\\\\\\" title=\\\\\\\"John Biddulph - Web Development\\\\\\\">jbiddulph.com</a> php code Code: <p> <label>Site Design by</label> <textarea class="text-input small-input" name="SiteDesignby"><?php echo $row1['SiteDesignby'] ?></textarea> </p> Can anyone help please? Can someone teel me what I need to do to target the links to frames? <!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Tree View</title> <link rel="stylesheet" type="text/css" href="css/multi/tree.css"> <script type="text/javascript" src="build/yahoo.js" ></script> <script type="text/javascript" src="build/event.js"></script> <script type="text/javascript" src="build/treeview.js" ></script> <script type="text/javascript" src="build/jktreeview.js" ></script> <!-- Below is Style sheet for demos. Removed if desired --> <style type="text/css"> body {font: normal 11px verdana, sans-serif; color: #333; line-height: 19px;} a { text-decoration: underline; color: #46546C; } a:hover { text-decoration: underline; color: #4d77c3; } #tree1 {width:250px;padding: 10px;float:left;} #tree2 {width:250px;padding: 10px;float:left;} #tree3 {width:250px;padding: 10px;float:left;} </style> </head> <body> <h2>Folding TreeView Menu demo: <a href="http://www.javascriptkit.com/script/treeview/">More info</a></h2> <!--Empty DIV tags to contain the treeview demos --> <div id="tree1"></div> <div id="tree2"></div> <div id="tree3" class="treemenu"></div> <script type="text/javascript"> var palmtree=new jktreeview("tree3") palmtree.addItem("Coding Forums", "", "http://www.codingforums.com") palmtree.addItem("PHP Reference", "", "http://www.php.net") palmtree.addItem("Mozilla Dev Center", "", "http://developer.mozilla.org/en/docs/Main_Page") var branch4=palmtree.addItem("CSS Drive") //A TREE BRANCH WITH NO URL FOR ITSELF palmtree.addItem("CSS Gallery", branch4, "http://www.cssdrive.com") //Add this item to branch4 palmtree.addItem("Web Design News", branch4, "http://www.cssdrive.com/index.php/news/") //Add this item to branch3 palmtree.addItem("CSS Compressor", branch4, "http://www.cssdrive.com/index.php/main/csscompressor/") //Add this item to branch3 palmtree.addItem("Ajaxian", "", "http://ajaxian.com/") palmtree.treetop.draw(); //REQUIRED LINE: Initalize tree </script> </body> </html> Hi, I have 2 groups of ads, 6 banners with different languages in each group. The only difference between those groups is the color. All 12 banners has the same size. I want to know how can I do Geo Targeting for those two groups. And how can I seperate each group with a tracking link that will tell me which color converts better. Will appreciate also a good resourse to learn from - website, tutorial, guide... Many thanks. Hello, I've been spending sometime on this project now I had a few PHP problem but have got them resolved. The one problem that I'm currently having is setting the target for a image upload form to send the data to another page so that the page never actually refreshes. I got this working just fine on Google Chrome, Firefox and so on but in internet explorer this is still a problem. Whenever you click submit to start the uploading of the picture it pops up a new window to the upload.php page that PHP script runs on. Its not suppose to do that, it is just suppose to run in the background and upload normally without any window popping up. I don't understand why it is doing this, I've seen other scripts do the same thing that I'm doing here but mine for some reason mine isn't working correctly in internet explorer. Maybe you guys can give me idea to what is wrong with this. Code: function showPhotoUpload() { //Apply the the black transparent background var overlay = document.createElement("div"); overlay.setAttribute("id","overlay"); overlay.style.cssText="z-index:3; background:#111111; min-width:100%; min-height:100%; max-height:120%; max-width:120%; position:absolute; top:0; opacity:0.5; filter:alpha(opacity:50);"; document.body.appendChild(overlay).lastChild; //Append the photo container var photoContainer = document.createElement("div"); photoContainer.style.cssText="z-index:4; background:#f1f1f1; width:400px; height:240px; overflow:hidden; position:absolute; top:20%; left:35%;"; photoContainer.setAttribute("id","photoContainer"); photoContainer.innerHTML = "<div id=\"photo-opt\">Please select a image file from your computer: <a href=\"javascript:;\" onclick=\"closePhotoUpload();\">Close</a><div id=\"file-upload\"><form method=\"post\" id=\"photo-upload\" action=\"upload.php\" enctype=\"multipart/form-data\"><input name=\"photo\" type=\"file\" /><input name=\"submit\" type=\"submit\" value=\"Upload\" /></form></div><div id=\"loading\"></div></div"; document.body.appendChild(photoContainer).lastChild; pushData(); } function createIframe() { var iframe = document.createElement("iframe"); iframe.setAttribute("width","0"); iframe.setAttribute("height","0"); iframe.setAttribute("name","upload_target"); iframe.setAttribute("src",""); iframe.setAttribute("style","width:0px; height:0px; border:0;"); iframe.setAttribute("id","upload_target"); document.body.appendChild(iframe); } function pushData() { document.getElementById('photo-upload').onsubmit=function() { createIframe(); document.forms[1].target = 'upload_target'; //'upload_target' is the name of the iframe setTimeout("document.body.removeChild(document.getElementById('upload_target'))", 250); } } function closePhotoUpload() { var photoContainer = _('photoContainer'); var overlay = _('overlay'); document.body.removeChild(photoContainer); document.body.removeChild(overlay); } The ones that need to be focused on the most is the createIframe() and pushData(). Those are the two that are suppose to do the magic. The pushData() function gets called in the showPhotoUpload() function. Thanks for the help. This seems like it would be so simple and I have absolutely no idea. I have one page with no frames, and two links on it. The second page has an iframe on it. Both links on page 1 point to page 2 (which houses the iframe), but based on which link is clicked will determine what that iframe will display. Basically I need to figure out a way to target the iframe on page 2 after executing a window.open statement. Much like how google images creates a frame at the top after you click on one of the images from the search results. I've attached two simple files to better explain what I'm trying to do. FrameSet.zip I'd appreciate the help, I'm losing my mind. Hi all Ive basically 3 php scripts: -one that writes an xml file from a directory of image files -one that creates a thumbnail from a jpeg file resizes it and puts a little drop shadow on the thumbnail -one that reads the xml file and outputs the html code so all is good a little old school, but it works, I get a page of thumbnails in whatever form I want with links. Ive attached a lightbox script I found to open the thumbnails and thats ok. What I would like to do is target the images to a container inside a div tag using jquery, maybe even fade the image in something fancy. but Id be happy with the basics. Just click on the thumbnail show it in the adjacent container. (dont have a container yet thats what i need some help with with) I'm doing my best going through various tutorials and the chm file learning as I go here is the test page that outputs the thumbnails: http://www.eagleview.ca/newsite/cont...om=0&pageto=12 any help is appreciated william Hi Guys i wonder if any one would be able to do this, i know its a hard one! Im wanting to use the following site but rather than copy pasting links (like they ask you to) i would rather use a script to grab the link and echo it for me. The reason being i think embedding they channels the offer would be far easier. So heres the challenge: The target is the stream url at the bottom of this page: http://www.zapni.tv/play.php?id=100 (looks like this Code: http://www.zapni.tv/stream/vlc.php?id=100&session=NTEzNjcwMzY2OQ==&stream=play ) the aim is to be able to write it into a player on page load like this: Code: <embed type="application/x-vlc-plugin" name="VLC" autoplay="yes" loop="no" volume="100" width="640" height="480" target="http://www.zapni.tv/stream/vlc.php?id=100&session=MTk3NjYwODUzOQ==&stream=play"> Cheers Guys in advance, and good luck! BTW i only hope Javascript is the correct category if not, sorry :-) I am new to this forum and self taught (amateur) programmer. I am making my eBay template for items that I sell (vintage clothing). I use the auction management system Blackthorne. I am trying to make my images swap over like this seller: Image rollover i want to replicate. It is not difficult to this in most listings but because I use Blackthorne, I have to put tags rather than the exact url of the image in my template. for example, [[picture1]], [[picture2]], etc. I do have a script which works so that the user can click on the photo to change it but I would prefer it if they could mouseover. The script I have been given to use is on this link: picture show script Thanks in advance. Hi, I am a Javascript newbie and I am trying to add a Javascript image application (called "HighSlide JS: http://highslide.com/#examples) to eBay listings. I am somewhat experienced with HTML and computers in general, but this javascript is all very confusing to me. My question is quite broad: How can I get this HighSlides script to show my images on my eBay listings? I am having trouble figuring out how to upload images to FTP servers or something, so that the script can use my images. I have Windows 7, and I do have Expression Web, if that means anything! I would be extremely grateful for any help! Thanks in advance! I am trying to use the HTML created by openWYSIWYG editor on my site. I am wanting to manipulate the created HTML that is generated...but I don't seem to be able to access it. When I pass the value through to a PHP script, it functions in much the similar way that any other textarea does. What I want to do works fine with a standard textbox and acquiring the value using: Code: textareaid.value But this doesn't seem to work when the openWYSIWYG editor is attached. Does anyone know how I can do this?? Cheers The Moose Any recommendations for a freeware html/javascript editor??. I am presently using HAPedit. Should it suffice ??
I'm starting out in JS and I'm looking for a good editor. Preferably cheap or free Anyone suggest something pls Nigel I use http://www.openwebware.com/ wysiwyg editor. It is necessary to change something in it, but I do not know how? When the inserted image in the editor, and then changes the image size, stretches the image in an editor, I want to record a change image size, without editor in <input type='text'> field. Is there any idea how to bring? Thanks! hi!! i wanna create a simple javascript editor.. the main thing here is i want something like Tinymce but with some features i want to add.. something simple i can tweak with.. please help guys I currently use MSE but it keeps moving things around and changing the formatting of the code. Can anyone recommend an editor that leaves things as I type them? Cheers Daniel. I am looking to create a web script that allows you to create custom strategy maps for various game like battlefield. What I want is the users to select a map (probably an image map with some default icons on it) and then they can lay on custom icons (directional arrows, attack / defend icons, ect, ect) to show a battle plan and then save it as an image. I would assume an image map would be best for this, but I am not sure how users can input, remove, rotate and resize the icons if needed. Is there some sort of script like this I can build on? I only know the basics of javascript and php, but perhaps someone can point me to a guide of some sort? Here is an example of what I want the user to be able to create which I made in photoshop, though it can easily be made in a simple program like paint too. QUESTION 1: Hello. I would like to know if this is possible with Javascript, and if yes, if someone can please provide me with the code or point me in the right direction. Let me start of by saying that this is for an eBay listing. I know that they accept basic / limited javascript and if what I am asking is possible, I hope that it can work on eBay listings. I would like to know if it's possible to determine the dimensions of an image with Javascript from an Image url, and to then resize it or not based on the the size of the image. So, let's say this is the URL: www.adomainname.com/image.jpg and let's say that image is 1400 px x 1400 px. I would first like the javascript code to detect that size. I also would like the maximum dimension for any side of the image to be 600 px. If both sides of the image are over 600 px, for both sides to be reduced proportionally to 600 px or lower. If any one side of the image is larger than 600 px, the image is to be resized to 600 px or lower. If both sides are under 600 px, the image is to not be reduced. It would also be nice if it can detect whether the image is portion or landscape based on I guess the larger side, because an image at 600 px in height might be too big, but in width might be o.k. So, in this example (the 1400 px by 1400 px), the image is to be resized to 600 px x 600 px. For an image that's 300 px x 500 px, it should remain as such. For an image that's 400 px x 700 px, it should be resized to 400 / (700 / 600) px by 600 px, which is approximately 343 px x 600 px. I have looked a bit into this and I see things being mentioned about the image being loaded first completely on the screen, or about using server side language like PHP, and so on, but like I said, keep in mind that this is for eBay, and so I am limited. Note: The part that I am most interested in is in being able to detect the size / dimensions of the image. QUESTION 2: On a side note, does anyone know if it's possible to have a Javascript enlarging function for images, in which when one clicks on an image, it is enlarged, but either in a popup window that's smaller than the one behind it, and possibly centered, or by making the background go dark and then bringing up the enlarged image (is the latter done with Javascript; I have seen this effect for a while now and have always wondered.) I assumed this is a javascript based text editor because when I turn off javascript it doesn't work. I was wondering how something like this is created. maybe not this exact one, but how would I create something like it. Maybe just a simple editor that changes text size and color.
Hi, well i saw this editor http://www.w3schools.com/svg/tryit.a...=trysvg_circle at w3schools and i was wondering if there is something like this available for use in one's site. I mean if there is a service that provides you with the editor for your site or if there is a way out to make something like this if there is already a script available. My knowledge is till html&css so this is what i don't know |